|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectorg.jboss.remoting.spi.SpiUtils
public final class SpiUtils

Utility methods for Remoting service providers.
| Method Summary | ||
|---|---|---|
static RemoteRequestContext |
getBlankRemoteRequestContext()
|
|
static void |
safeHandleCancellation(ReplyHandler replyHandler)
Safely notify a reply handler of a cancellation. |
|
static
|
safeHandleClose(CloseHandler<? super T> handler,
T closed)
Safely handle a close notification. |
|
static void |
safeHandleException(ReplyHandler replyHandler,
IOException exception)
Safely notify a reply handler of an exception. |
|
static
|
safeHandleReply(ReplyHandler replyHandler,
O reply)
Safely notify a reply handler of a reply. |
|
static
|
safeNotifyCancellation(RequestCancelHandler<O> handler,
RequestContext<O> requestContext)
Safely notify a request listener's cancel handler of cancellation. |
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Method Detail |
|---|
public static void safeHandleException(ReplyHandler replyHandler,
IOException exception)
replyHandler - the reply handlerexception -
public static <O> void safeHandleReply(ReplyHandler replyHandler,
O reply)
O - the reply typereplyHandler - the reply handlerreply - the replypublic static void safeHandleCancellation(ReplyHandler replyHandler)
replyHandler - the reply handler
public static <O> void safeNotifyCancellation(RequestCancelHandler<O> handler,
RequestContext<O> requestContext)
handler - the request cancel handlerrequestContext - the request context
public static <T> void safeHandleClose(CloseHandler<? super T> handler,
T closed)
T - the type of the closable resourcehandler - the close handlerclosed - the object that was closedpublic static RemoteRequestContext getBlankRemoteRequestContext()
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||