Table of Contents

Class SubmissionPublisher<T>

Namespace
Java.Util.Concurrent
Assembly
MASES.Netdroid.dll
public class SubmissionPublisher<T> : JVMBridgeBase<SubmissionPublisher<T>>, IDynamicMetaObjectProvider, IJVMBridgeCore, IEquatable<IJVMBridgeBaseInstance>, IDisposable, IJVMBridgeBaseStatic, IJVMBridgeBase, IJVMBridgeBaseInstance, IJVMBridgeDefinition, IAutoCloseable

Type Parameters

T
Inheritance
SubmissionPublisher<T>
Implements
Extension Methods

Constructors

SubmissionPublisher()

public SubmissionPublisher()

SubmissionPublisher(Executor, int)

public SubmissionPublisher(Executor arg0, int arg1)

Parameters

arg0 Executor

Executor

arg1 int

int

SubmissionPublisher(Executor, int, BiConsumer)

public SubmissionPublisher(Executor arg0, int arg1, BiConsumer arg2)

Parameters

arg0 Executor

Executor

arg1 int

int

arg2 BiConsumer

BiConsumer

SubmissionPublisher(IJVMBridgeBaseInitializer)

Initializer used internally by JCOBridge. Do not use directly.

[Obsolete("This public initializer is needed for JCOBridge internal use, other uses can produce unidentible behaviors.")]
public SubmissionPublisher(IJVMBridgeBaseInitializer initializer)

Parameters

initializer IJVMBridgeBaseInitializer

Properties

BridgeClassName

Java class name to be instantiated

public override string BridgeClassName { get; }

Property Value

string

IsBridgeAbstract

true if the BridgeClassName is an abstract class, i.e. cannot be created an instance

public override bool IsBridgeAbstract { get; }

Property Value

bool

IsBridgeCloseable

true if the BridgeClassName implements java.lang.AutoCloseable

public override bool IsBridgeCloseable { get; }

Property Value

bool

IsBridgeInterface

true if the BridgeClassName is an interface, i.e. does not have any public constructor

public override bool IsBridgeInterface { get; }

Property Value

bool

IsBridgeStatic

true if the BridgeClassName is a static class, i.e. does not have any public constructor

public override bool IsBridgeStatic { get; }

Property Value

bool

Methods

Close()

public void Close()

CloseExceptionally(JVMBridgeException)

public void CloseExceptionally(JVMBridgeException arg0)

Parameters

arg0 JVMBridgeException

Throwable

Consume<Arg0objectSuperT>(Consumer<Arg0objectSuperT>)

public CompletableFuture<Void> Consume<Arg0objectSuperT>(Consumer<Arg0objectSuperT> arg0) where Arg0objectSuperT : T

Parameters

arg0 Consumer<Arg0objectSuperT>

Consumer

Returns

CompletableFuture<Void>

CompletableFuture

Type Parameters

Arg0objectSuperT

T

CreatePoolableInstance()

HPA initializer for SubmissionPublisher()

public static SubmissionPublisher<T> CreatePoolableInstance()

Returns

SubmissionPublisher<T>

CreatePoolableInstance(Executor, int)

HPA initializer for SubmissionPublisher(Java.Util.Concurrent.Executor arg0, int arg1)

public static SubmissionPublisher<T> CreatePoolableInstance(Executor arg0, int arg1)

Parameters

arg0 Executor
arg1 int

Returns

SubmissionPublisher<T>

CreatePoolableInstance(Executor, int, BiConsumer)

HPA initializer for SubmissionPublisher(Java.Util.Concurrent.Executor arg0, int arg1, Java.Util.Function.BiConsumer arg2)

public static SubmissionPublisher<T> CreatePoolableInstance(Executor arg0, int arg1, BiConsumer arg2)

Parameters

arg0 Executor
arg1 int
arg2 BiConsumer

Returns

SubmissionPublisher<T>

EstimateMaximumLag()

public int EstimateMaximumLag()

Returns

int

int

EstimateMinimumDemand()

public long EstimateMinimumDemand()

Returns

long

long

GetClosedException()

public Throwable GetClosedException()

Returns

Throwable

Throwable

GetExecutor()

public Executor GetExecutor()

Returns

Executor

Executor

GetMaxBufferCapacity()

public int GetMaxBufferCapacity()

Returns

int

int

GetNumberOfSubscribers()

public int GetNumberOfSubscribers()

Returns

int

int

GetSubscribers<ReturnobjectSuperT>()

public List<Flow.Subscriber<ReturnobjectSuperT>> GetSubscribers<ReturnobjectSuperT>() where ReturnobjectSuperT : T

Returns

List<Flow.Subscriber<ReturnobjectSuperT>>

List

Type Parameters

ReturnobjectSuperT

T

HasSubscribers()

public bool HasSubscribers()

Returns

bool

bool

IsClosed()

public bool IsClosed()

Returns

bool

bool

IsSubscribed<Arg0objectSuperT>(Subscriber<Arg0objectSuperT>)

public bool IsSubscribed<Arg0objectSuperT>(Flow.Subscriber<Arg0objectSuperT> arg0) where Arg0objectSuperT : T

Parameters

arg0 Flow.Subscriber<Arg0objectSuperT>

Flow.Subscriber

Returns

bool

bool

Type Parameters

Arg0objectSuperT

T

Offer<Arg1objectSuperT>(T, BiPredicate<Subscriber<Arg1objectSuperT>, Arg1objectSuperT>)

public int Offer<Arg1objectSuperT>(T arg0, BiPredicate<Flow.Subscriber<Arg1objectSuperT>, Arg1objectSuperT> arg1) where Arg1objectSuperT : T

Parameters

arg0 T

T

arg1 BiPredicate<Flow.Subscriber<Arg1objectSuperT>, Arg1objectSuperT>

BiPredicate

Returns

int

int

Type Parameters

Arg1objectSuperT

T

Offer<Arg3objectSuperT>(T, long, TimeUnit, BiPredicate<Subscriber<Arg3objectSuperT>, Arg3objectSuperT>)

public int Offer<Arg3objectSuperT>(T arg0, long arg1, TimeUnit arg2, BiPredicate<Flow.Subscriber<Arg3objectSuperT>, Arg3objectSuperT> arg3) where Arg3objectSuperT : T

Parameters

arg0 T

T

arg1 long

long

arg2 TimeUnit

TimeUnit

arg3 BiPredicate<Flow.Subscriber<Arg3objectSuperT>, Arg3objectSuperT>

BiPredicate

Returns

int

int

Type Parameters

Arg3objectSuperT

T

Submit(T)

public int Submit(T arg0)

Parameters

arg0 T

T

Returns

int

int

Subscribe<Arg0objectSuperT>(Subscriber<Arg0objectSuperT>)

public void Subscribe<Arg0objectSuperT>(Flow.Subscriber<Arg0objectSuperT> arg0) where Arg0objectSuperT : T

Parameters

arg0 Flow.Subscriber<Arg0objectSuperT>

Flow.Subscriber

Type Parameters

Arg0objectSuperT

T

Operators

implicit operator AutoCloseable(SubmissionPublisher<T>)

public static implicit operator AutoCloseable(SubmissionPublisher<T> t)

Parameters

t SubmissionPublisher<T>

Returns

AutoCloseable

implicit operator SubmissionPublisher(SubmissionPublisher<T>)

public static implicit operator SubmissionPublisher(SubmissionPublisher<T> t)

Parameters

t SubmissionPublisher<T>

Returns

SubmissionPublisher