Interface ServerSideToolkit

All Superinterfaces:
NotificationNotifier
All Known Implementing Classes:
ServerSideToolkitImpl

public interface ServerSideToolkit extends NotificationNotifier
A Toolkit for ServerInterfaceHandlers to help them do their job.
Author:
Rob Gordon.
  • Method Details

    • getRemoteId

      long getRemoteId()
    • sendNotification

      void sendNotification(Notification<?> notification)
      Send a notification. This can be provided by BroadcastNotificationSupport in the implementation.
      Parameters:
      notification - The notification.
    • createNotification

      <T> Notification<T> createNotification(NotificationType<T> type, T userData)
      Create a Notification.
      Parameters:
      type - The notification type.
      userData - Optional user data.
      Returns:
      A new notification.
    • runSynchronized

      void runSynchronized(Runnable runnable)
      Used by handlers to execute functionality while holding the resync lock.
      Parameters:
      runnable - The functionality to run.
    • getContext

      ServerContext getContext()
      Gives handlers access to the server context.
      Returns:
      The server context for this MBean.
    • getRemoteBean

      RemoteOddjobBean getRemoteBean()
      Get the remote controller bean.
      Returns:
    • getServerSession

      ServerSession getServerSession()
      Get the server session.
      Returns: