public interface SubHandler<T extends NetworkContext<T>> extends NetworkContextManager<T>, net.openhft.chronicle.core.io.ManagedCloseable
| Modifier and Type | Method and Description |
|---|---|
long |
cid() |
void |
cid(long cid) |
net.openhft.chronicle.core.io.Closeable |
closable() |
void |
closeable(net.openhft.chronicle.core.io.Closeable closeable) |
String |
csp() |
void |
csp(@NotNull String cspText) |
default boolean |
inProgress()
Is a long-lived action (see above) in progress?
|
void |
localIdentifier(int localIdentifier) |
void |
onInitialize(net.openhft.chronicle.wire.WireOut outWire)
called after all the construction and configuration has completed
|
void |
onRead(@NotNull net.openhft.chronicle.wire.WireIn inWire,
@NotNull net.openhft.chronicle.wire.WireOut outWire) |
default boolean |
onTouch(net.openhft.chronicle.wire.WireOut outWire)
Some events may result in long-lived actions, which must yield periodically to allow (eg) buffers to clear (out messages to be sent)
A busy handler can indicate a long-lived action by returning
true from inProgress
The caller should then use this to invoke onTouch to give the handler another slice |
void |
remoteIdentifier(int remoteIdentifier) |
nc, nccreatedHere, throwExceptionIfClosed, warnAndCloseIfNotClosedvoid cid(long cid)
long cid()
void csp(@NotNull
@NotNull String cspText)
String csp()
void onRead(@NotNull
@NotNull net.openhft.chronicle.wire.WireIn inWire,
@NotNull
@NotNull net.openhft.chronicle.wire.WireOut outWire)
net.openhft.chronicle.core.io.Closeable closable()
void remoteIdentifier(int remoteIdentifier)
void localIdentifier(int localIdentifier)
void onInitialize(net.openhft.chronicle.wire.WireOut outWire)
throws RejectedExecutionException
outWire - allow data to be writtenRejectedExecutionExceptiondefault boolean onTouch(net.openhft.chronicle.wire.WireOut outWire)
true from inProgress
The caller should then use this to invoke onTouch to give the handler another sliceoutWire - default boolean inProgress()
void closeable(net.openhft.chronicle.core.io.Closeable closeable)
Copyright © 2023. All rights reserved.