|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.apache.mina.core.IoUtil
public class IoUtil
A utility class that provides various convenience methods related with
IoSession
and IoFuture
.
Method Summary | |
---|---|
static void |
await(java.lang.Iterable<? extends IoFuture> futures)
|
static boolean |
await(java.lang.Iterable<? extends IoFuture> futures,
long timeoutMillis)
|
static boolean |
await(java.lang.Iterable<? extends IoFuture> futures,
long timeout,
java.util.concurrent.TimeUnit unit)
|
static void |
awaitUninterruptably(java.lang.Iterable<? extends IoFuture> futures)
|
static boolean |
awaitUninterruptibly(java.lang.Iterable<? extends IoFuture> futures,
long timeoutMillis)
|
static boolean |
awaitUninterruptibly(java.lang.Iterable<? extends IoFuture> futures,
long timeout,
java.util.concurrent.TimeUnit unit)
|
static java.util.List<WriteFuture> |
broadcast(java.lang.Object message,
java.util.Collection<IoSession> sessions)
Writes the specified message to the specified sessions . |
static java.util.List<WriteFuture> |
broadcast(java.lang.Object message,
IoSession... sessions)
Writes the specified message to the specified sessions . |
static java.util.List<WriteFuture> |
broadcast(java.lang.Object message,
java.lang.Iterable<IoSession> sessions)
Writes the specified message to the specified sessions . |
static java.util.List<WriteFuture> |
broadcast(java.lang.Object message,
java.util.Iterator<IoSession> sessions)
Writes the specified message to the specified sessions . |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Method Detail |
---|
public static java.util.List<WriteFuture> broadcast(java.lang.Object message, java.util.Collection<IoSession> sessions)
message
to the specified sessions
.
If the specified message
is an IoBuffer
, the buffer is
automatically duplicated using IoBuffer.duplicate()
.
public static java.util.List<WriteFuture> broadcast(java.lang.Object message, java.lang.Iterable<IoSession> sessions)
message
to the specified sessions
.
If the specified message
is an IoBuffer
, the buffer is
automatically duplicated using IoBuffer.duplicate()
.
public static java.util.List<WriteFuture> broadcast(java.lang.Object message, java.util.Iterator<IoSession> sessions)
message
to the specified sessions
.
If the specified message
is an IoBuffer
, the buffer is
automatically duplicated using IoBuffer.duplicate()
.
public static java.util.List<WriteFuture> broadcast(java.lang.Object message, IoSession... sessions)
message
to the specified sessions
.
If the specified message
is an IoBuffer
, the buffer is
automatically duplicated using IoBuffer.duplicate()
.
public static void await(java.lang.Iterable<? extends IoFuture> futures) throws java.lang.InterruptedException
java.lang.InterruptedException
public static void awaitUninterruptably(java.lang.Iterable<? extends IoFuture> futures)
public static boolean await(java.lang.Iterable<? extends IoFuture> futures, long timeout, java.util.concurrent.TimeUnit unit) throws java.lang.InterruptedException
java.lang.InterruptedException
public static boolean await(java.lang.Iterable<? extends IoFuture> futures, long timeoutMillis) throws java.lang.InterruptedException
java.lang.InterruptedException
public static boolean awaitUninterruptibly(java.lang.Iterable<? extends IoFuture> futures, long timeout, java.util.concurrent.TimeUnit unit)
public static boolean awaitUninterruptibly(java.lang.Iterable<? extends IoFuture> futures, long timeoutMillis)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |