Java Code Examples for reactor.core.Fuseable#THREAD_BARRIER

The following examples show how to use reactor.core.Fuseable#THREAD_BARRIER . You can vote up the ones you like or vote down the ones you don't like, and go to the original project or source file by following the links above each example. You may check out the related API usage on the sidebar.
Example 1
Source File: FluxPeekFuseable.java    From reactor-core with Apache License 2.0 5 votes vote down vote up
@Override
public int requestFusion(int requestedMode) {
	int m;
	if ((requestedMode & Fuseable.THREAD_BARRIER) != 0) {
		return Fuseable.NONE;
	}
	else {
		m = s.requestFusion(requestedMode);
	}
	sourceMode = m;
	return m;
}
 
Example 2
Source File: FluxGenerate.java    From reactor-core with Apache License 2.0 5 votes vote down vote up
@Override
public int requestFusion(int requestedMode) {
	if ((requestedMode & Fuseable.SYNC) != 0 && (requestedMode & Fuseable.THREAD_BARRIER) == 0) {
		outputFused = true;
		return Fuseable.SYNC;
	}
	return Fuseable.NONE;
}
 
Example 3
Source File: FluxIndexFuseable.java    From reactor-core with Apache License 2.0 5 votes vote down vote up
@Override
public int requestFusion(int requestedMode) {
	int m;
	if (indexMapper != Flux.TUPLE2_BIFUNCTION && (requestedMode & Fuseable.THREAD_BARRIER) != 0) {
		return Fuseable.NONE;
	}
	else {
		m = s.requestFusion(requestedMode);
	}
	sourceMode = m;
	return m;
}
 
Example 4
Source File: FluxIndexFuseable.java    From reactor-core with Apache License 2.0 5 votes vote down vote up
@Override
public int requestFusion(int requestedMode) {
	int m;
	if (indexMapper != Flux.TUPLE2_BIFUNCTION && (requestedMode & Fuseable.THREAD_BARRIER) != 0) {
		return Fuseable.NONE;
	}
	else {
		m = s.requestFusion(requestedMode);
	}
	sourceMode = m;
	return m;
}
 
Example 5
Source File: FluxFilterFuseable.java    From reactor-core with Apache License 2.0 5 votes vote down vote up
@Override
public int requestFusion(int requestedMode) {
	int m;
	if ((requestedMode & Fuseable.THREAD_BARRIER) != 0) {
		return Fuseable.NONE;
	}
	else {
		m = s.requestFusion(requestedMode);
	}
	sourceMode = m;
	return m;
}
 
Example 6
Source File: FluxFilterFuseable.java    From reactor-core with Apache License 2.0 5 votes vote down vote up
@Override
public int requestFusion(int requestedMode) {
	int m;
	if ((requestedMode & Fuseable.THREAD_BARRIER) != 0) {
		return Fuseable.NONE;
	}
	else {
		m = s.requestFusion(requestedMode);
	}
	sourceMode = m;
	return m;
}
 
Example 7
Source File: FluxMapFuseable.java    From reactor-core with Apache License 2.0 5 votes vote down vote up
@Override
public int requestFusion(int requestedMode) {
	int m;
	if ((requestedMode & Fuseable.THREAD_BARRIER) != 0) {
		return Fuseable.NONE;
	}
	else {
		m = s.requestFusion(requestedMode);
	}
	sourceMode = m;
	return m;
}
 
Example 8
Source File: FluxMapFuseable.java    From reactor-core with Apache License 2.0 5 votes vote down vote up
@Override
public int requestFusion(int requestedMode) {
	int m;
	if ((requestedMode & Fuseable.THREAD_BARRIER) != 0) {
		return Fuseable.NONE;
	}
	else {
		m = s.requestFusion(requestedMode);
	}
	sourceMode = m;
	return m;
}
 
Example 9
Source File: FluxHandleFuseable.java    From reactor-core with Apache License 2.0 5 votes vote down vote up
@Override
public int requestFusion(int requestedMode) {
	int m;
	if ((requestedMode & Fuseable.THREAD_BARRIER) != 0) {
		return Fuseable.NONE;
	}
	else {
		m = s.requestFusion(requestedMode);
	}
	sourceMode = m;
	return m;
}
 
Example 10
Source File: FluxHandleFuseable.java    From reactor-core with Apache License 2.0 5 votes vote down vote up
@Override
public int requestFusion(int requestedMode) {
	int m;
	if ((requestedMode & Fuseable.THREAD_BARRIER) != 0) {
		return Fuseable.NONE;
	}
	else {
		m = s.requestFusion(requestedMode);
	}
	sourceMode = m;
	return m;
}
 
Example 11
Source File: DiscardOnCancelSubscriber.java    From r2dbc-mysql with Apache License 2.0 5 votes vote down vote up
@Override
public int requestFusion(int modes) {
    if ((modes & Fuseable.THREAD_BARRIER) != 0) {
        return Fuseable.NONE;
    }

    return this.s.requestFusion(modes);
}
 
Example 12
Source File: FluxPeekFuseable.java    From reactor-core with Apache License 2.0 5 votes vote down vote up
@Override
public int requestFusion(int requestedMode) {
	int m;
	if ((requestedMode & Fuseable.THREAD_BARRIER) != 0) {
		return Fuseable.NONE;
	}
	else {
		m = s.requestFusion(requestedMode);
	}
	sourceMode = m;
	return m;
}
 
Example 13
Source File: FluxDoFinally.java    From reactor-core with Apache License 2.0 5 votes vote down vote up
@Override
public int requestFusion(int mode) {
	QueueSubscription<T> qs = this.qs;
	if (qs != null && (mode & Fuseable.THREAD_BARRIER) == 0) {
		int m = qs.requestFusion(mode);
		if (m != Fuseable.NONE) {
			syncFused = m == Fuseable.SYNC;
		}
		return m;
	}
	return Fuseable.NONE;
}
 
Example 14
Source File: FluxDoOnEach.java    From reactor-core with Apache License 2.0 5 votes vote down vote up
@Override
public int requestFusion(int mode) {
	QueueSubscription<T> qs = this.qs;
	if (qs != null && (mode & Fuseable.THREAD_BARRIER) == 0) {
		int m = qs.requestFusion(mode);
		if (m != Fuseable.NONE) {
			syncFused = m == Fuseable.SYNC;
		}
		return m;
	}
	return Fuseable.NONE;
}
 
Example 15
Source File: DefaultStepVerifierBuilder.java    From reactor-core with Apache License 2.0 5 votes vote down vote up
static String formatFusionMode(int m) {
	switch (m) {
		case Fuseable.ANY:
			return "(any)";
		case Fuseable.SYNC:
			return "(sync)";
		case Fuseable.ASYNC:
			return "(async)";
		case Fuseable.NONE:
			return "none";
		case Fuseable.THREAD_BARRIER:
			return "(thread-barrier)";
	}
	return "" + m;
}
 
Example 16
Source File: MetricsFuseableConditionalSubscriber.java    From rsocket-rpc-java with Apache License 2.0 5 votes vote down vote up
@Override
public int requestFusion(int requestedMode) {
  int m;
  if ((requestedMode & Fuseable.THREAD_BARRIER) != 0) {
    return Fuseable.NONE;
  } else {
    m = s.requestFusion(requestedMode);
  }
  sourceMode = m;
  return m;
}
 
Example 17
Source File: MetricsFuseableSubscriber.java    From rsocket-rpc-java with Apache License 2.0 5 votes vote down vote up
@Override
public int requestFusion(int requestedMode) {
  int m;
  if ((requestedMode & Fuseable.THREAD_BARRIER) != 0) {
    return Fuseable.NONE;
  } else {
    m = s.requestFusion(requestedMode);
  }
  sourceMode = m;
  return m;
}
 
Example 18
Source File: MetricsFuseableConditionalSubscriber.java    From rsocket-rpc-java with Apache License 2.0 5 votes vote down vote up
@Override
public int requestFusion(int requestedMode) {
  int m;
  if ((requestedMode & Fuseable.THREAD_BARRIER) != 0) {
    return Fuseable.NONE;
  } else {
    m = s.requestFusion(requestedMode);
  }
  sourceMode = m;
  return m;
}
 
Example 19
Source File: MetricsFuseableSubscriber.java    From rsocket-rpc-java with Apache License 2.0 5 votes vote down vote up
@Override
public int requestFusion(int requestedMode) {
  int m;
  if ((requestedMode & Fuseable.THREAD_BARRIER) != 0) {
    return Fuseable.NONE;
  } else {
    m = s.requestFusion(requestedMode);
  }
  sourceMode = m;
  return m;
}
 
Example 20
Source File: DiscardOnCancelSubscriber.java    From r2dbc-mysql with Apache License 2.0 5 votes vote down vote up
@Override
public int requestFusion(int modes) {
    if ((modes & Fuseable.THREAD_BARRIER) != 0) {
        return Fuseable.NONE;
    }

    return this.s.requestFusion(modes);
}