public interface ServerSideToolkit
Modifier and Type | Method and Description |
---|---|
<T> Notification<T> |
createNotification(NotificationType<T> type,
T userData)
Create a Notification.
|
ServerContext |
getContext()
Gives handlers access to the server context.
|
RemoteOddjobBean |
getRemoteBean()
Get the remote controller bean.
|
ServerSession |
getServerSession()
Get the server session.
|
void |
runSynchronized(java.lang.Runnable runnable)
Used by handlers to execute functionality while
holding the resync lock.
|
void |
sendNotification(Notification<?> notification)
Send a notification.
|
void sendNotification(Notification<?> notification)
notification
- The notification.<T> Notification<T> createNotification(NotificationType<T> type, T userData)
type
- The notification type.userData
- Optional user data.void runSynchronized(java.lang.Runnable runnable)
runnable
- The functionality to run.ServerContext getContext()
RemoteOddjobBean getRemoteBean()
ServerSession getServerSession()