@Deprecated public abstract class AbstractStatelessClient<E extends net.openhft.chronicle.wire.ParameterizeWireKey> extends net.openhft.chronicle.core.io.SimpleCloseable implements Closeable
| Modifier and Type | Field and Description |
|---|---|
protected @NotNull String |
csp
Deprecated.
|
protected @NotNull TcpChannelHub |
hub
Deprecated.
|
| Modifier | Constructor and Description |
|---|---|
protected |
AbstractStatelessClient(@NotNull TcpChannelHub hub,
long cid,
@NotNull String csp)
Deprecated.
|
| Modifier and Type | Method and Description |
|---|---|
protected <T> T |
attempt(@NotNull net.openhft.chronicle.core.util.ThrowingSupplier<T,TimeoutException> s)
Deprecated.
this method will re attempt a number of times until successful, if connection is dropped to
the remote server the TcpChannelHub may ( if configured ) automatically fail-over to another
host.
|
protected void |
performClose()
Deprecated.
|
protected boolean |
proxyReturnBoolean(@NotNull net.openhft.chronicle.wire.WireKey eventId)
Deprecated.
|
protected boolean |
proxyReturnBooleanWithArgs(E eventId,
Object... args)
Deprecated.
|
protected boolean |
proxyReturnBooleanWithSequence(E eventId,
@NotNull Collection<?> sequence)
Deprecated.
|
protected byte |
proxyReturnByte(@NotNull net.openhft.chronicle.wire.WireKey eventId)
Deprecated.
|
protected byte |
proxyReturnByte(@NotNull net.openhft.chronicle.wire.WireKey reply,
@NotNull net.openhft.chronicle.wire.WireKey eventId)
Deprecated.
|
protected int |
proxyReturnInt(E eventId,
Object... args)
Deprecated.
|
protected int |
proxyReturnInt(@NotNull net.openhft.chronicle.wire.WireKey eventId)
Deprecated.
|
protected long |
proxyReturnLong(@NotNull net.openhft.chronicle.wire.WireKey eventId)
Deprecated.
|
protected long |
proxyReturnLongWithArgs(E eventId,
Object... args)
Deprecated.
|
protected <R> R |
proxyReturnTypedObject(E eventId,
R usingValue,
@NotNull Class<R> resultType)
Deprecated.
|
protected <R> R |
proxyReturnTypedObject(E eventId,
R usingValue,
@NotNull Class<R> resultType,
Object... args)
Deprecated.
|
protected <R> R |
proxyReturnTypedObject(E eventId,
R usingValue,
@NotNull Class<R> resultType,
@NotNull Object arg)
Deprecated.
|
protected int |
proxyReturnUint16(@NotNull net.openhft.chronicle.wire.WireKey eventId)
Deprecated.
|
protected void |
proxyReturnVoid(@NotNull net.openhft.chronicle.wire.WireKey eventId)
Deprecated.
|
protected void |
proxyReturnVoid(@NotNull net.openhft.chronicle.wire.WireKey eventId,
@Nullable net.openhft.chronicle.wire.WriteValue consumer)
Deprecated.
|
protected <T> T |
proxyReturnWireConsumer(@NotNull net.openhft.chronicle.wire.WireKey eventId,
@NotNull Function<net.openhft.chronicle.wire.ValueIn,T> consumer)
Deprecated.
|
protected <T> T |
proxyReturnWireConsumerInOut(@NotNull net.openhft.chronicle.wire.WireKey eventId,
@NotNull net.openhft.chronicle.wire.WireKey reply,
@Nullable net.openhft.chronicle.wire.WriteValue consumerOut,
@NotNull Function<net.openhft.chronicle.wire.ValueIn,T> consumerIn)
Deprecated.
|
protected <R> R |
proxyReturnWireTypedObject(E eventId,
R usingValue,
@NotNull Class<R> resultType,
Object... args)
Deprecated.
|
protected boolean |
readBoolean(long tid,
long startTime)
Deprecated.
|
protected int |
readInt(long tid,
long startTime)
Deprecated.
|
protected boolean |
sendBytes(@NotNull net.openhft.chronicle.bytes.Bytes<?> bytes,
boolean reattemptUponFailure)
Deprecated.
|
protected long |
sendEvent(long startTime,
@NotNull net.openhft.chronicle.wire.WireKey eventId,
@Nullable net.openhft.chronicle.wire.WriteValue consumer)
Deprecated.
|
protected boolean |
sendEventAsync(@NotNull net.openhft.chronicle.wire.WireKey eventId,
@Nullable net.openhft.chronicle.wire.WriteValue consumer,
boolean reattemptUponFailure)
Deprecated.
|
protected net.openhft.chronicle.wire.WriteValue |
toParameters(E eventId,
Object... args)
Deprecated.
|
protected net.openhft.chronicle.wire.WriteValue |
toParameters(E eventId,
@Nullable Object arg)
Deprecated.
Returns a WriteValue for the provided
eventId and
provided argument. |
protected void |
writeMetaDataForKnownTID(long tid)
Deprecated.
Useful for when you know the tid
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitreferenceId, referenceName, temporary@NotNull protected final @NotNull TcpChannelHub hub
@NotNull protected final @NotNull String csp
protected AbstractStatelessClient(@NotNull
@NotNull TcpChannelHub hub,
long cid,
@NotNull
@NotNull String csp)
hub - for this connectioncid - used by proxies such as the entry-setcsp - the uri of the requestprotected net.openhft.chronicle.wire.WriteValue toParameters(@NotNull
E eventId,
@Nullable
@Nullable Object arg)
eventId and
provided argument.
This is a specialized one-parameter implementation of
toParameters(ParameterizeWireKey, Object...) which
avoids creation of an array and lambda.
eventId - to usedarg - single argumenteventId and
provided argument.protected net.openhft.chronicle.wire.WriteValue toParameters(@NotNull
E eventId,
@Nullable
Object... args)
@Nullable
protected <R> R proxyReturnWireTypedObject(@NotNull
E eventId,
@Nullable
R usingValue,
@NotNull
@NotNull Class<R> resultType,
@NotNull
Object... args)
@Nullable
protected <R> R proxyReturnTypedObject(@NotNull
E eventId,
@Nullable
R usingValue,
@NotNull
@NotNull Class<R> resultType,
@NotNull
Object... args)
@Nullable
protected <R> R proxyReturnTypedObject(@NotNull
E eventId,
@Nullable
R usingValue,
@NotNull
@NotNull Class<R> resultType)
@Nullable
protected <R> R proxyReturnTypedObject(@NotNull
E eventId,
@Nullable
R usingValue,
@NotNull
@NotNull Class<R> resultType,
@NotNull
@NotNull Object arg)
protected <T> T attempt(@NotNull
@NotNull net.openhft.chronicle.core.util.ThrowingSupplier<T,TimeoutException> s)
T - the type of supplys - the supplyprotected long proxyReturnLong(@NotNull
@NotNull net.openhft.chronicle.wire.WireKey eventId)
protected int proxyReturnInt(@NotNull
@NotNull net.openhft.chronicle.wire.WireKey eventId)
protected int proxyReturnInt(@NotNull
E eventId,
@NotNull
Object... args)
protected byte proxyReturnByte(@NotNull
@NotNull net.openhft.chronicle.wire.WireKey eventId)
protected byte proxyReturnByte(@NotNull
@NotNull net.openhft.chronicle.wire.WireKey reply,
@NotNull
@NotNull net.openhft.chronicle.wire.WireKey eventId)
protected int proxyReturnUint16(@NotNull
@NotNull net.openhft.chronicle.wire.WireKey eventId)
protected <T> T proxyReturnWireConsumer(@NotNull
@NotNull net.openhft.chronicle.wire.WireKey eventId,
@NotNull
@NotNull Function<net.openhft.chronicle.wire.ValueIn,T> consumer)
protected <T> T proxyReturnWireConsumerInOut(@NotNull
@NotNull net.openhft.chronicle.wire.WireKey eventId,
@NotNull
@NotNull net.openhft.chronicle.wire.WireKey reply,
@Nullable
@Nullable net.openhft.chronicle.wire.WriteValue consumerOut,
@NotNull
@NotNull Function<net.openhft.chronicle.wire.ValueIn,T> consumerIn)
protected void proxyReturnVoid(@NotNull
@NotNull net.openhft.chronicle.wire.WireKey eventId,
@Nullable
@Nullable net.openhft.chronicle.wire.WriteValue consumer)
protected void proxyReturnVoid(@NotNull
@NotNull net.openhft.chronicle.wire.WireKey eventId)
protected long sendEvent(long startTime,
@NotNull
@NotNull net.openhft.chronicle.wire.WireKey eventId,
@Nullable
@Nullable net.openhft.chronicle.wire.WriteValue consumer)
protected boolean sendEventAsync(@NotNull
@NotNull net.openhft.chronicle.wire.WireKey eventId,
@Nullable
@Nullable net.openhft.chronicle.wire.WriteValue consumer,
boolean reattemptUponFailure)
eventId - the wire event idconsumer - a function consume the wirereattemptUponFailure - if false - will only be sent if the connection is validprotected boolean sendBytes(@NotNull
@NotNull net.openhft.chronicle.bytes.Bytes<?> bytes,
boolean reattemptUponFailure)
bytes - the bytes to sendreattemptUponFailure - if false - will only be sent if the connection is validprotected void writeMetaDataForKnownTID(long tid)
tid - the tid transactionprotected boolean readBoolean(long tid,
long startTime)
throws net.openhft.chronicle.bytes.ConnectionDroppedException,
TimeoutException
net.openhft.chronicle.bytes.ConnectionDroppedExceptionTimeoutExceptionprotected boolean proxyReturnBooleanWithArgs(@NotNull
E eventId,
@NotNull
Object... args)
protected long proxyReturnLongWithArgs(@NotNull
E eventId,
@NotNull
Object... args)
protected boolean proxyReturnBooleanWithSequence(@NotNull
E eventId,
@NotNull
@NotNull Collection<?> sequence)
protected boolean proxyReturnBoolean(@NotNull
@NotNull net.openhft.chronicle.wire.WireKey eventId)
protected int readInt(long tid,
long startTime)
throws net.openhft.chronicle.bytes.ConnectionDroppedException,
TimeoutException
net.openhft.chronicle.bytes.ConnectionDroppedExceptionTimeoutExceptionprotected void performClose()
performClose in class net.openhft.chronicle.core.io.SimpleCloseableCopyright © 2023. All rights reserved.