public class DatagramSession extends AbstractSession implements IDatagramSession
IDatagramSession
interface.Constructor and Description |
---|
DatagramSession(IDatagramHandler handler)
Constructs a datagram-oriented session associated with a handler.
|
DatagramSession(String name,
IDatagramHandler handler)
Constructs a named datagram-oriented session associated with a handler.
|
Modifier and Type | Method and Description |
---|---|
ByteBuffer |
allocate(int capacity)
Allocates a byte buffer by using the allocator associated with this session.
|
void |
close()
Gently closes this session after all pending data waiting for writing are fully flushed.
|
void |
dirtyClose()
Quickly closes this session without flushing any pending data and without following
close procedure of an application layer (e.g.
|
IFuture<Void> |
execute(Runnable task)
Executes a task in the selector-loop's thread this session is registered
with.
|
void |
executenf(Runnable task)
Executes a task in the selector-loop's thread this session is registered
with.
|
IFuture<Void> |
getCloseFuture()
Gets the future that can be use to wait for the completion of the closing
phase.
|
ICodecPipeline |
getCodecPipeline()
Gets the codec pipeline that is associated with this session.
|
ISessionConfig |
getConfig()
Gets the configuration of this session.
|
IFuture<Void> |
getCreateFuture()
Gets the future that can be use to wait for the completion of the
creation phase.
|
long |
getCreationTime()
Gets the session's creation time in milliseconds.
|
IFuture<Void> |
getEndFuture()
Gets the future that can be use to wait for the completion of the ending
phase.
|
IDatagramHandler |
getHandler()
Gets the datagram-oriented handler associated with this session
|
long |
getLastIoTime()
Gets the time in milliseconds when I/O operation occurred lastly.
|
long |
getLastReadTime()
Gets the time in milliseconds when read operation occurred lastly.
|
long |
getLastWriteTime()
Gets the time in milliseconds when write operation occurred lastly.
|
SocketAddress |
getLocalAddress()
Return the local address this session is bound to.
|
IFuture<Void> |
getOpenFuture()
Gets the future that can be use to wait for the completion of the opening
phase.
|
IDatagramSession |
getParent()
Gets the parent session.
|
long |
getReadBytes()
Gets the total number of bytes which were read from this session.
|
double |
getReadBytesThroughput()
Gets the number of read bytes per second.
|
IFuture<Void> |
getReadyFuture()
Gets the future that can be use to wait for the completion of the ready
phase.
|
SocketAddress |
getRemoteAddress()
Returns the remote address to which this session is connected.
|
SessionState |
getState()
Gets the current state of this session.
|
ISessionTimer |
getTimer()
Gets the session timer associated with this session.
|
long |
getWrittenBytes()
Gets the total number of bytes which were written to this session.
|
double |
getWrittenBytesThroughput()
Gets the number of written bytes per second.
|
boolean |
isDataCopyingOptimized()
Tells if the processing of data is optimized to reduce data copying between
byte buffers.
|
boolean |
isOpen()
Tells if this session is open.
|
boolean |
isReadSuspended()
Tells if read operations are suspended for this session.
|
boolean |
isWriteSuspended()
Tells if write operations are suspended for this session.
|
void |
quickClose()
Quickly closes this session without flushing any pending data.
|
void |
release(ByteBuffer buffer)
Release given byte buffer by the allocator associated with this session.
|
void |
resumeRead()
Resumes read operations for this session.
|
void |
resumeWrite()
Resumes write operations for this session.
|
IFuture<Void> |
send(SocketAddress remoteAddress,
byte[] datagram)
Sends a
datagram.length byte datagram from the specified
byte array to a remote end via the datagram-oriented channel associated
with this session. |
IFuture<Void> |
send(SocketAddress remoteAddress,
byte[] datagram,
int offset,
int length)
Sends a
length byte datagram from the specified byte array
to a remote end via the datagram-oriented channel associated with this
session. |
IFuture<Void> |
send(SocketAddress remoteAddress,
ByteBuffer datagram)
Sends a
datagram.remaining() byte datagram from the specified byte
buffer to a remote end via the datagram-oriented channel associated with this
session. |
IFuture<Void> |
send(SocketAddress remoteAddress,
ByteBuffer datagram,
int length)
Sends a
length byte datagram from the specified byte buffer
to a remote end via the datagram-oriented channel associated with this
session. |
IFuture<Void> |
send(SocketAddress remoteAddress,
IByteBufferHolder datagram)
Sends a
datagram.remaining() byte datagram from the specified byte
buffer holder to a remote end via the datagram-oriented channel associated with
this session. |
IFuture<Void> |
send(SocketAddress remoteAddress,
Object msg)
Sends a message to a remote end via the datagram-oriented channel
associated with this session.
|
void |
sendnf(SocketAddress remoteAddress,
byte[] datagram)
Sends a
datagram.length byte datagram from the specified
byte array to a remote end via the datagram-oriented channel associated
with this session. |
void |
sendnf(SocketAddress remoteAddress,
byte[] datagram,
int offset,
int length)
Sends a
length byte datagram from the specified byte array
to a remote end via the datagram-oriented channel associated with this
session. |
void |
sendnf(SocketAddress remoteAddress,
ByteBuffer datagram)
Sends a
datagram.remaining() byte datagram from the specified byte
buffer to a remote end via the datagram-oriented channel associated with this
session. |
void |
sendnf(SocketAddress remoteAddress,
ByteBuffer datagram,
int length)
Sends a
length byte datagram from the specified byte buffer
to a remote end via the datagram-oriented channel associated with this
session. |
void |
sendnf(SocketAddress remoteAddress,
IByteBufferHolder datagram)
Sends a
datagram.remaining() byte datagram from the specified byte
buffer holder to a remote end via the datagram-oriented channel associated with
this session. |
void |
sendnf(SocketAddress remoteAddress,
Object msg)
Sends a message to a remote end via the datagram-oriented channel
associated with this session.
|
void |
suspendRead()
Suspends read operations for this session.
|
void |
suspendWrite()
Suspends write operations for this session.
|
IFuture<Void> |
write(byte[] datagram)
Writes a
datagram.length byte datagram from the specified
byte array to the datagram-oriented channel associated with this session. |
IFuture<Void> |
write(byte[] datagram,
int offset,
int length)
Writes a
length byte datagram from the specified byte array
to the datagram-oriented channel associated with this session. |
IFuture<Void> |
write(ByteBuffer datagram)
Writes a
datagram.remaining() byte datagram from the specified byte buffer
to the datagram-oriented channel associated with this session. |
IFuture<Void> |
write(ByteBuffer datagram,
int length)
Writes a
length byte datagram from the specified byte buffer
to the datagram-oriented channel associated with this session. |
IFuture<Void> |
write(IByteBufferHolder datagram)
Writes a
datagram.remaining() byte datagram from the specified byte buffer
holder to the datagram-oriented channel associated with this session. |
IFuture<Void> |
write(Object msg)
Writes a message to the datagram-oriented channel associated with this session.
|
void |
writenf(byte[] datagram)
Writes a
datagram.length byte datagram from the specified
byte array to the datagram-oriented channel associated with this session. |
void |
writenf(byte[] datagram,
int offset,
int length)
Writes a
length byte datagram from the specified byte array
to the datagram-oriented channel associated with this session. |
void |
writenf(ByteBuffer datagram)
Writes a
datagram.remaining() byte datagram from the specified byte buffer
to the datagram-oriented channel associated with this session. |
void |
writenf(ByteBuffer datagram,
int length)
Writes a
length byte datagram from the specified byte buffer
to the datagram-oriented channel associated with this session. |
void |
writenf(IByteBufferHolder datagram)
Writes a
datagram.remaining() byte datagram from the specified byte buffer
holder to the datagram-oriented channel associated with this session. |
void |
writenf(Object msg)
Writes a message to the datagram-oriented channel associated with this session.
|
getAttributes
getId, getName, toString
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
allocate, execute, executenf, getAttributes, getCloseFuture, getCodecPipeline, getConfig, getCreateFuture, getCreationTime, getEndFuture, getId, getLastIoTime, getLastReadTime, getLastWriteTime, getName, getOpenFuture, getReadBytes, getReadBytesThroughput, getReadyFuture, getState, getTimer, getWrittenBytes, getWrittenBytesThroughput, isDataCopyingOptimized, isOpen, isReadSuspended, isWriteSuspended, release, resumeRead, resumeWrite, suspendRead, suspendWrite
public DatagramSession(String name, IDatagramHandler handler)
name
- the name for this session, or null
if the
handler's name should be used for this session's namehandler
- the handler that should be associated with this sessionpublic DatagramSession(IDatagramHandler handler)
handler
- the handler that should be associated with this sessionpublic IDatagramHandler getHandler()
IDatagramSession
getHandler
in interface IDatagramSession
getHandler
in interface ISession
public IDatagramSession getParent()
ISession
Some sessions may not implement its own I/O functionalities and use their parent's ones instead.
getParent
in interface IDatagramSession
getParent
in interface ISession
null
if it does not exist.public SocketAddress getLocalAddress()
ISession
getLocalAddress
in interface ISession
null
if this session is not
bound yetSocket
public SocketAddress getRemoteAddress()
ISession
getRemoteAddress
in interface ISession
null
if this session is not
connected yetSocket
public IFuture<Void> write(byte[] datagram)
IDatagramSession
datagram.length
byte datagram from the specified
byte array to the datagram-oriented channel associated with this session.
This method may only be invoked if the associated channel's socket is connected, in which case it writes the datagram directly to the socket's peer.
The operation is asynchronous.
write
in interface IDatagramSession
datagram
- the datagram to be writtenpublic IFuture<Void> send(SocketAddress remoteAddress, byte[] datagram)
IDatagramSession
datagram.length
byte datagram from the specified
byte array to a remote end via the datagram-oriented channel associated
with this session.
If the remoteAddress
argument is not null
then
the method may only be invoked if the associated channel's socket is not
connected. In case the argument is null
the method will work
as the adequate write method.
The operation is asynchronous.
send
in interface IDatagramSession
remoteAddress
- the address of the remote end where the datagram should be sentdatagram
- the datagram to be sentpublic void writenf(byte[] datagram)
IDatagramSession
datagram.length
byte datagram from the specified
byte array to the datagram-oriented channel associated with this session.
This method may only be invoked if the associated channel's socket is connected, in which case it writes the datagram directly to the socket's peer.
The operation is asynchronous.
This method should be used whenever there will be no need to synchronize on a future object. This will save some resources and may improve performance.
writenf
in interface IDatagramSession
datagram
- the datagram to be writtenpublic IFuture<Void> write(byte[] datagram, int offset, int length)
IDatagramSession
length
byte datagram from the specified byte array
to the datagram-oriented channel associated with this session.
This method may only be invoked if the associated channel's socket is connected, in which case it writes the datagram directly to the socket's peer.
The operation is asynchronous.
write
in interface IDatagramSession
datagram
- the datagram to be writtenoffset
- offset within the array of the first byte to be writtenlength
- number of bytes to be writtenpublic void writenf(byte[] datagram, int offset, int length)
IDatagramSession
length
byte datagram from the specified byte array
to the datagram-oriented channel associated with this session.
This method may only be invoked if the associated channel's socket is connected, in which case it writes the datagram directly to the socket's peer.
The operation is asynchronous.
This method should be used whenever there will be no need to synchronize on a future object. This will save some resources and may improve performance.
writenf
in interface IDatagramSession
datagram
- the datagram to be writtenoffset
- offset within the array of the first byte to be writtenlength
- number of bytes to be writtenpublic IFuture<Void> write(ByteBuffer datagram)
IDatagramSession
datagram.remaining()
byte datagram from the specified byte buffer
to the datagram-oriented channel associated with this session.
This method may only be invoked if the associated channel's socket is connected, in which case it writes the datagram directly to the socket's peer.
The operation is asynchronous.
write
in interface IDatagramSession
datagram
- the datagram to be writtenpublic void writenf(ByteBuffer datagram)
IDatagramSession
datagram.remaining()
byte datagram from the specified byte buffer
to the datagram-oriented channel associated with this session.
This method may only be invoked if the associated channel's socket is connected, in which case it writes the datagram directly to the socket's peer.
The operation is asynchronous.
This method should be used whenever there will be no need to synchronize on a future object. This will save some resources and may improve performance.
writenf
in interface IDatagramSession
datagram
- the datagram to be writtenpublic IFuture<Void> write(ByteBuffer datagram, int length)
IDatagramSession
length
byte datagram from the specified byte buffer
to the datagram-oriented channel associated with this session.
This method may only be invoked if the associated channel's socket is connected, in which case it writes the datagram directly to the socket's peer.
The operation is asynchronous.
write
in interface IDatagramSession
datagram
- the datagram to be writtenlength
- number of bytes to be writtenpublic void writenf(ByteBuffer datagram, int length)
IDatagramSession
length
byte datagram from the specified byte buffer
to the datagram-oriented channel associated with this session.
This method may only be invoked if the associated channel's socket is connected, in which case it writes the datagram directly to the socket's peer.
The operation is asynchronous.
This method should be used whenever there will be no need to synchronize on a future object. This will save some resources and may improve performance.
writenf
in interface IDatagramSession
datagram
- the datagram to be writtenlength
- number of bytes to be writtenpublic IFuture<Void> write(IByteBufferHolder datagram)
IDatagramSession
datagram.remaining()
byte datagram from the specified byte buffer
holder to the datagram-oriented channel associated with this session.
This method may only be invoked if the associated channel's socket is connected, in which case it writes the datagram directly to the socket's peer.
The operation is asynchronous.
NOTE: The behavior of this method may change if the specified byte buffer holder is marked as a message.
write
in interface IDatagramSession
datagram
- the datagram to be writtenIByteBufferHolder.isMessage()
public void writenf(IByteBufferHolder datagram)
IDatagramSession
datagram.remaining()
byte datagram from the specified byte buffer
holder to the datagram-oriented channel associated with this session.
This method may only be invoked if the associated channel's socket is connected, in which case it writes the datagram directly to the socket's peer.
The operation is asynchronous.
This method should be used whenever there will be no need to synchronize on a future object. This will save some resources and may improve performance.
NOTE: The behavior of this method may change if the specified byte buffer holder is marked as a message.
writenf
in interface IDatagramSession
datagram
- the datagram to be writtenIByteBufferHolder.isMessage()
public IFuture<Void> write(Object msg)
IDatagramSession
This method may only be invoked if the associated channel's socket is connected, in which case it writes the message directly to the socket's peer.
The operation is asynchronous.
This method usually requires that the session has configured a codec
pipeline with at least one encoder that accepts the msg as the inbound
data. If a codec pipeline is not configured or no encoder accept the msg
object it still accepts messages that are of the byte[]
or
ByteBuffer
type.
write
in interface IDatagramSession
msg
- the message to be writtenpublic void writenf(Object msg)
IDatagramSession
This method may only be invoked if the associated channel's socket is connected, in which case it writes the message directly to the socket's peer.
The operation is asynchronous.
This method usually requires that the session has configured a codec
pipeline with at least one encoder that accepts the msg as the inbound
data. If a codec pipeline is not configured or no encoder accept the msg
object it still accepts messages that are of the byte[]
or
ByteBuffer
type.
This method should be used whenever there will be no need to synchronize on a future object. This will save some resources and may improve performance.
writenf
in interface IDatagramSession
msg
- the message to be writtenpublic void sendnf(SocketAddress remoteAddress, byte[] datagram)
IDatagramSession
datagram.length
byte datagram from the specified
byte array to a remote end via the datagram-oriented channel associated
with this session.
If the remoteAddress
argument is not null
then
the method may only be invoked if the associated channel's socket is not
connected. In case the argument is null
the method will work
as the adequate write method.
The operation is asynchronous.
This method should be used whenever there will be no need to synchronize on a future object. This will save some resources and may improve performance.
sendnf
in interface IDatagramSession
remoteAddress
- the address of the remote end where the datagram should be sentdatagram
- the datagram to be sentpublic IFuture<Void> send(SocketAddress remoteAddress, byte[] datagram, int offset, int length)
IDatagramSession
length
byte datagram from the specified byte array
to a remote end via the datagram-oriented channel associated with this
session.
If the remoteAddress
argument is not null
then
the method may only be invoked if the associated channel's socket is not
connected. In case the argument is null
the method will work
as the adequate write method.
The operation is asynchronous.
send
in interface IDatagramSession
remoteAddress
- the address of the remote end where the datagram should be sentdatagram
- the datagram to be sentoffset
- offset within the array of the first byte to be sentlength
- number of bytes to be sentpublic void sendnf(SocketAddress remoteAddress, byte[] datagram, int offset, int length)
IDatagramSession
length
byte datagram from the specified byte array
to a remote end via the datagram-oriented channel associated with this
session.
If the remoteAddress
argument is not null
then
the method may only be invoked if the associated channel's socket is not
connected. In case the argument is null
the method will work
as the adequate write method.
The operation is asynchronous.
This method should be used whenever there will be no need to synchronize on a future object. This will save some resources and may improve performance.
sendnf
in interface IDatagramSession
remoteAddress
- the address of the remote end where the datagram should be sentdatagram
- the datagram to be sentoffset
- offset within the array of the first byte to be sentlength
- number of bytes to be sentpublic IFuture<Void> send(SocketAddress remoteAddress, ByteBuffer datagram)
IDatagramSession
datagram.remaining()
byte datagram from the specified byte
buffer to a remote end via the datagram-oriented channel associated with this
session.
If the remoteAddress
argument is not null
then
the method may only be invoked if the associated channel's socket is not
connected. In case the argument is null
the method will work
as the adequate write method.
The operation is asynchronous.
send
in interface IDatagramSession
remoteAddress
- the address of the remote end where the datagram should be sentdatagram
- the datagram to be sentpublic void sendnf(SocketAddress remoteAddress, ByteBuffer datagram)
IDatagramSession
datagram.remaining()
byte datagram from the specified byte
buffer to a remote end via the datagram-oriented channel associated with this
session.
If the remoteAddress
argument is not null
then
the method may only be invoked if the associated channel's socket is not
connected. In case the argument is null
the method will work
as the adequate write method.
The operation is asynchronous.
This method should be used whenever there will be no need to synchronize on a future object. This will save some resources and may improve performance.
sendnf
in interface IDatagramSession
remoteAddress
- the address of the remote end where the datagram should be sentdatagram
- the datagram to be sentpublic IFuture<Void> send(SocketAddress remoteAddress, ByteBuffer datagram, int length)
IDatagramSession
length
byte datagram from the specified byte buffer
to a remote end via the datagram-oriented channel associated with this
session.
If the remoteAddress
argument is not null
then
the method may only be invoked if the associated channel's socket is not
connected. In case the argument is null
the method will work
as the adequate write method.
The operation is asynchronous.
send
in interface IDatagramSession
remoteAddress
- the address of the remote end where the datagram should be sentdatagram
- the datagram to be sentlength
- number of bytes to be sentpublic void sendnf(SocketAddress remoteAddress, ByteBuffer datagram, int length)
IDatagramSession
length
byte datagram from the specified byte buffer
to a remote end via the datagram-oriented channel associated with this
session.
If the remoteAddress
argument is not null
then
the method may only be invoked if the associated channel's socket is not
connected. In case the argument is null
the method will work
as the adequate write method.
The operation is asynchronous.
This method should be used whenever there will be no need to synchronize on a future object. This will save some resources and may improve performance.
sendnf
in interface IDatagramSession
remoteAddress
- the address of the remote end where the datagram should be sentdatagram
- the datagram to be sentlength
- number of bytes to be sentpublic IFuture<Void> send(SocketAddress remoteAddress, IByteBufferHolder datagram)
IDatagramSession
datagram.remaining()
byte datagram from the specified byte
buffer holder to a remote end via the datagram-oriented channel associated with
this session.
If the remoteAddress
argument is not null
then
the method may only be invoked if the associated channel's socket is not
connected. In case the argument is null
the method will work
as the adequate write method.
The operation is asynchronous.
NOTE: The behavior of this method may change if the specified byte buffer holder is marked as a message.
send
in interface IDatagramSession
remoteAddress
- the address of the remote end where the datagram should be sentdatagram
- the datagram to be sentIByteBufferHolder.isMessage()
public void sendnf(SocketAddress remoteAddress, IByteBufferHolder datagram)
IDatagramSession
datagram.remaining()
byte datagram from the specified byte
buffer holder to a remote end via the datagram-oriented channel associated with
this session.
If the remoteAddress
argument is not null
then
the method may only be invoked if the associated channel's socket is not
connected. In case the argument is null
the method will work
as the adequate write method.
The operation is asynchronous.
This method should be used whenever there will be no need to synchronize on a future object. This will save some resources and may improve performance.
NOTE: The behavior of this method may change if the specified byte buffer holder is marked as a message.
sendnf
in interface IDatagramSession
remoteAddress
- the address of the remote end where the datagram should be sentdatagram
- the datagram to be sentIByteBufferHolder.isMessage()
public IFuture<Void> send(SocketAddress remoteAddress, Object msg)
IDatagramSession
If the remoteAddress
argument is not null
then
the method may only be invoked if the associated channel's socket is not
connected. In case the argument is null
the method will work
as the adequate write method.
The operation is asynchronous.
This method usually requires that the session has configured a codec
pipeline with at least one encoder that accepts the msg as the inbound
data. If a codec pipeline is not configured or no encoder accept the msg
object it still accepts messages that are of the byte[]
or
ByteBuffer
type.
send
in interface IDatagramSession
remoteAddress
- the address of the remote end where the message should be sentmsg
- the message to be sentpublic void sendnf(SocketAddress remoteAddress, Object msg)
IDatagramSession
If the remoteAddress
argument is not null
then
the method may only be invoked if the associated channel's socket is not
connected. In case the argument is null
the method will work
as the adequate write method.
The operation is asynchronous.
This method usually requires that the session has configured a codec
pipeline with at least one encoder that accepts the msg as the inbound
data. If a codec pipeline is not configured or no encoder accept the msg
object it still accepts messages that are of the byte[]
or
ByteBuffer
type.
This method should be used whenever there will be no need to synchronize on a future object. This will save some resources and may improve performance.
sendnf
in interface IDatagramSession
remoteAddress
- the address of the remote end where the message should be sentmsg
- the message to be sentpublic void close()
ISession
After returning from this method any consecutive writes will be simply discarded.
public void quickClose()
ISession
After returning from this method any consecutive writes will be simply discarded.
quickClose
in interface ISession
public void dirtyClose()
ISession
dirtyClose
in interface ISession
public IFuture<Void> getCreateFuture()
ISession
getCreateFuture
in interface ISession
public IFuture<Void> getOpenFuture()
ISession
getOpenFuture
in interface ISession
public IFuture<Void> getReadyFuture()
ISession
getReadyFuture
in interface ISession
public IFuture<Void> getCloseFuture()
ISession
getCloseFuture
in interface ISession
public IFuture<Void> getEndFuture()
ISession
getEndFuture
in interface ISession
public ISessionConfig getConfig()
ISession
public ICodecPipeline getCodecPipeline()
ISession
getCodecPipeline
in interface ISession
null
if the session does not
support itpublic SessionState getState()
ISession
public boolean isOpen()
ISession
It is equal to:
return getState() == SessionState.OPEN
public void suspendRead()
ISession
suspendRead
in interface ISession
public void suspendWrite()
ISession
suspendWrite
in interface ISession
public void resumeRead()
ISession
resumeRead
in interface ISession
public void resumeWrite()
ISession
resumeWrite
in interface ISession
public boolean isReadSuspended()
ISession
isReadSuspended
in interface ISession
true
if suspendedpublic boolean isWriteSuspended()
ISession
isWriteSuspended
in interface ISession
true
if suspendedpublic final long getReadBytes()
ISession
getReadBytes
in interface ISession
public final long getWrittenBytes()
ISession
getWrittenBytes
in interface ISession
public final double getReadBytesThroughput()
ISession
getReadBytesThroughput
in interface ISession
public final double getWrittenBytesThroughput()
ISession
getWrittenBytesThroughput
in interface ISession
public final long getCreationTime()
ISession
getCreationTime
in interface ISession
public final long getLastIoTime()
ISession
getLastIoTime
in interface ISession
public final long getLastReadTime()
ISession
getLastReadTime
in interface ISession
public final long getLastWriteTime()
ISession
getLastWriteTime
in interface ISession
public ISessionTimer getTimer()
ISession
public boolean isDataCopyingOptimized()
ISession
Checking this flag can be helpful in determining if a buffer allocated by the
ISession.allocate(int)
method need to be released after passing it to the
session's write/send methods. For example, if the returned value is
true
the buffer will be released automatically and so it should not
be released by a user's implementation.
isDataCopyingOptimized
in interface ISession
true
if the processing of data is optimizedISessionConfig.optimizeDataCopying()
public ByteBuffer allocate(int capacity)
ISession
public void release(ByteBuffer buffer)
ISession
public IFuture<Void> execute(Runnable task)
ISession
public void executenf(Runnable task)
ISession
This method should be used whenever there will be no need to synchronize on a future associated with the specified task. This will save some resources and may improve performance.
Copyright © 2017–2022 SNF4J.ORG. All rights reserved.