org.apache.wicket.protocol.ws
Class WebSocketSettings

java.lang.Object
  extended by org.apache.wicket.protocol.ws.WebSocketSettings
All Implemented Interfaces:
IWebSocketSettings

public class WebSocketSettings
extends Object
implements IWebSocketSettings


Nested Class Summary
 
Nested classes/interfaces inherited from interface org.apache.wicket.protocol.ws.IWebSocketSettings
IWebSocketSettings.Holder
 
Field Summary
 
Fields inherited from interface org.apache.wicket.protocol.ws.IWebSocketSettings
KEY
 
Constructor Summary
WebSocketSettings()
           
 
Method Summary
 IWebSocketConnectionRegistry getConnectionRegistry()
           
 Executor getWebSocketPushMessageExecutor()
          The executor for processing websocket push messages broadcasted to all sessions.
 IWebSocketSettings setConnectionRegistry(IWebSocketConnectionRegistry connectionRegistry)
           
 IWebSocketSettings setWebSocketPushMessageExecutor(Executor executor)
          Set the executor for processing websocket push messages broadcasted to all sessions.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

WebSocketSettings

public WebSocketSettings()
Method Detail

setWebSocketPushMessageExecutor

public IWebSocketSettings setWebSocketPushMessageExecutor(Executor executor)
Description copied from interface: IWebSocketSettings
Set the executor for processing websocket push messages broadcasted to all sessions. Default executor does all the processing in the caller thread. Using a proper thread pool is adviced for applications that send push events from ajax calls to avoid page level deadlocks.

Specified by:
setWebSocketPushMessageExecutor in interface IWebSocketSettings
Parameters:
executor - The executor used for processing push messages.

getConnectionRegistry

public IWebSocketConnectionRegistry getConnectionRegistry()
Specified by:
getConnectionRegistry in interface IWebSocketSettings

setConnectionRegistry

public IWebSocketSettings setConnectionRegistry(IWebSocketConnectionRegistry connectionRegistry)
Specified by:
setConnectionRegistry in interface IWebSocketSettings

getWebSocketPushMessageExecutor

public Executor getWebSocketPushMessageExecutor()
Description copied from interface: IWebSocketSettings
The executor for processing websocket push messages broadcasted to all sessions.

Specified by:
getWebSocketPushMessageExecutor in interface IWebSocketSettings
Returns:
The executor used for processing push messages.


Copyright © 2006–2013 Apache Software Foundation. All rights reserved.