クラス EndpointConnectionManager
java.lang.ObjectSE
org.springframework.web.socket.client.ConnectionManagerSupport
org.springframework.web.socket.client.standard.EndpointConnectionManager
- 実装されているすべてのインターフェース:
Aware、BeanFactoryAware、Lifecycle、Phased、SmartLifecycle
- 導入:
- 4.0
- 作成者:
- Rossen Stoyanchev
- 関連事項:
フィールドのサマリー
クラス org.springframework.web.socket.client.ConnectionManagerSupport から継承されたフィールド
loggerインターフェース org.springframework.context.SmartLifecycle から継承されたフィールド
DEFAULT_PHASEコンストラクターの概要
コンストラクターコンストラクター説明EndpointConnectionManager(EndpointEE endpoint, StringSE uriTemplate, ObjectSE... uriVariables) EndpointConnectionManager(ClassSE<? extends EndpointEE> endpointClass, StringSE uriTemplate, ObjectSE... uriVars) メソッドのサマリー
修飾子と型メソッド説明protected voidサブクラスはこれを実装して接続を閉じます。設定されたTaskExecutorを返します。boolean接続が開いている /trueか閉じている /falseか。protected voidサブクラスはこれを実装して、実際に接続を確立します。voidsetBeanFactory(BeanFactory beanFactory) 所有ファクトリを Bean インスタンスに提供するコールバック。voidsetConfigurator(ClientEndpointConfig.ConfiguratorEE configurator) voidsetDecoders(ListSE<ClassSE<? extends DecoderEE>> decoders) voidsetEncoders(ListSE<ClassSE<? extends EncoderEE>> encoders) voidsetExtensions(ExtensionEE... extensions) voidsetSupportedProtocols(StringSE... protocols) voidsetTaskExecutor(TaskExecutor taskExecutor) 接続を開くために使用するTaskExecutorを設定します。voidsetWebSocketContainer(WebSocketContainerEE webSocketContainer) クラス org.springframework.web.socket.client.ConnectionManagerSupport から継承されたメソッド
getPhase, getUri, isAutoStartup, isRunning, setAutoStartup, setPhase, start, startInternal, stop, stop, stopInternal
コンストラクターの詳細
EndpointConnectionManager
public EndpointConnectionManager(EndpointEE endpoint, StringSE uriTemplate, ObjectSE... uriVariables) EndpointConnectionManager
public EndpointConnectionManager(ClassSE<? extends EndpointEE> endpointClass, StringSE uriTemplate, ObjectSE... uriVars)
メソッドの詳細
setSupportedProtocols
setExtensions
setEncoders
setDecoders
setConfigurator
setWebSocketContainer
getWebSocketContainer
setBeanFactory
インターフェースからコピーされた説明:BeanFactoryAware所有ファクトリを Bean インスタンスに提供するコールバック。通常の Bean プロパティの設定後、ただし
InitializingBean.afterPropertiesSet()またはカスタム init-method などの初期化コールバックの前に呼び出されます。- 次で指定:
- インターフェース
BeanFactoryAwareのsetBeanFactory - パラメーター:
beanFactory- 所有 BeanFactory(非null)。Bean は、ファクトリのメソッドをすぐに呼び出すことができます。- 関連事項:
setTaskExecutor
接続を開くために使用するTaskExecutorを設定します。デフォルトではSimpleAsyncTaskExecutorが使用されます。getTaskExecutor
設定されたTaskExecutorを返します。isConnected
public boolean isConnected()クラスからコピーされた説明:ConnectionManagerSupport接続が開いている /trueか閉じている /falseか。- 次で指定:
- クラス
ConnectionManagerSupportのisConnected
openConnection
protected void openConnection()クラスからコピーされた説明:ConnectionManagerSupportサブクラスはこれを実装して、実際に接続を確立します。- 次で指定:
- クラス
ConnectionManagerSupportのopenConnection
closeConnection
クラスからコピーされた説明:ConnectionManagerSupportサブクラスはこれを実装して接続を閉じます。- 次で指定:
- クラス
ConnectionManagerSupportのcloseConnection - 例外:
ExceptionSE