com.nec.webotx.enterprise.web.connector.grizzly.comet
クラス DefaultNotificationHandler

java.lang.Object
  上位を拡張 com.nec.webotx.enterprise.web.connector.grizzly.comet.DefaultNotificationHandler
すべての実装されたインタフェース:
NotificationHandler

public class DefaultNotificationHandler
extends java.lang.Object
implements NotificationHandler

Default Notificationhandler that uses the same a Grizzly Pipeline to execute the notification process.


フィールドの概要
protected  boolean blockingNotification
          true if the caller of CometContext.notify should block when notifying other CometHandler.
protected  Pipeline pipeline
          The Pipeline used to execute threaded notification.
 
コンストラクタの概要
DefaultNotificationHandler()
           
 
メソッドの概要
 boolean isBlockingNotification()
          Return true if the invoker of notify() should block when notifying Comet Handlers.
 void notify(CometEvent cometEvent, CometHandler cometHandler)
          Notify a single CometHandler.
 void notify(CometEvent cometEvent, java.util.Iterator<CometHandler> iteratorHandlers)
          Notify all CometHandler.
protected  void notify0(CometEvent cometEvent, CometHandler cometHandler)
          Notify a CometHandler.
protected  void notify0(CometEvent cometEvent, java.util.Iterator<CometHandler> iteratorHandlers)
           
 void setBlockingNotification(boolean blockingNotification)
          Set to true if the invoker of notify() should block when notifying Comet Handlers.
protected  void setPipeline(Pipeline pipeline)
          Set the Pipeline used for notifying the CometHandler.
 
クラス java.lang.Object から継承されたメソッド
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

フィールドの詳細

pipeline

protected Pipeline pipeline
The Pipeline used to execute threaded notification.


blockingNotification

protected boolean blockingNotification
true if the caller of CometContext.notify should block when notifying other CometHandler.

コンストラクタの詳細

DefaultNotificationHandler

public DefaultNotificationHandler()
メソッドの詳細

setPipeline

protected void setPipeline(Pipeline pipeline)
Set the Pipeline used for notifying the CometHandler.


isBlockingNotification

public boolean isBlockingNotification()
Return true if the invoker of notify() should block when notifying Comet Handlers.

定義:
インタフェース NotificationHandler 内の isBlockingNotification

setBlockingNotification

public void setBlockingNotification(boolean blockingNotification)
Set to true if the invoker of notify() should block when notifying Comet Handlers.

定義:
インタフェース NotificationHandler 内の setBlockingNotification

notify

public void notify(CometEvent cometEvent,
                   java.util.Iterator<CometHandler> iteratorHandlers)
            throws java.io.IOException
Notify all CometHandler.

定義:
インタフェース NotificationHandler 内の notify
パラメータ:
cometEvent - the CometEvent used to notify CometHandler
iteratorHandlers - An iterator over a list of CometHandler
例外:
java.io.IOException

notify0

protected void notify0(CometEvent cometEvent,
                       java.util.Iterator<CometHandler> iteratorHandlers)
                throws java.io.IOException
例外:
java.io.IOException

notify

public void notify(CometEvent cometEvent,
                   CometHandler cometHandler)
            throws java.io.IOException
Notify a single CometHandler.

定義:
インタフェース NotificationHandler 内の notify
パラメータ:
cometEvent - the CometEvent used to notify CometHandler
cometHandler - a CometHandler
例外:
java.io.IOException

notify0

protected void notify0(CometEvent cometEvent,
                       CometHandler cometHandler)
                throws java.io.IOException
Notify a CometHandler. CometEvent.INTERRUPT -> CometHandler.onInterrupt CometEvent.NOTIFY -> CometHandler.onEvent CometEvent.INITIALIZE -> CometHandler.onInitialize CometEvent.TERMINATE -> CometHandler.onTerminate CometEvent.READ -> CometHandler.onEvent CometEvent.WRITE -> CometHandler.onEvent

パラメータ:
attachment - An object shared amongst CometHandler.
cometHandler - The CometHandler to invoke.
例外:
java.io.IOException