org.springframework.messaging.tcp.TcpOperations Java Examples

The following examples show how to use org.springframework.messaging.tcp.TcpOperations. You can vote up the ones you like or vote down the ones you don't like, and go to the original project or source file by following the links above each example. You may check out the related API usage on the sidebar.
Example #1
Source File: ReactorNettyTcpStompClient.java    From spring-analysis-note with MIT License 4 votes vote down vote up
/**
 * Create an instance with a pre-configured TCP client.
 * @param tcpClient the client to use
 */
public ReactorNettyTcpStompClient(TcpOperations<byte[]> tcpClient) {
	Assert.notNull(tcpClient, "'tcpClient' is required");
	this.tcpClient = tcpClient;
}
 
Example #2
Source File: ReactorNettyTcpStompClient.java    From java-technology-stack with MIT License 4 votes vote down vote up
/**
 * Create an instance with a pre-configured TCP client.
 * @param tcpClient the client to use
 */
public ReactorNettyTcpStompClient(TcpOperations<byte[]> tcpClient) {
	Assert.notNull(tcpClient, "'tcpClient' is required");
	this.tcpClient = tcpClient;
}
 
Example #3
Source File: StompBrokerRelayMessageHandler.java    From spring4-understanding with Apache License 2.0 4 votes vote down vote up
public TcpOperations<byte[]> create(String relayHost, int relayPort, Reactor2StompCodec codec) {
	return new Reactor2TcpClient<byte[]>(relayHost, relayPort, codec);
}
 
Example #4
Source File: StompBrokerRelayMessageHandler.java    From spring-analysis-note with MIT License 2 votes vote down vote up
/**
 * Configure a TCP client for managing TCP connections to the STOMP broker.
 * <p>By default {@link ReactorNettyTcpClient} is used.
 * <p><strong>Note:</strong> when this property is used, any
 * {@link #setRelayHost(String) host} or {@link #setRelayPort(int) port}
 * specified are effectively ignored.
 */
public void setTcpClient(@Nullable TcpOperations<byte[]> tcpClient) {
	this.tcpClient = tcpClient;
}
 
Example #5
Source File: StompBrokerRelayMessageHandler.java    From spring-analysis-note with MIT License 2 votes vote down vote up
/**
 * Get the configured TCP client (never {@code null} unless not configured
 * invoked and this method is invoked before the handler is started and
 * hence a default implementation initialized).
 */
@Nullable
public TcpOperations<byte[]> getTcpClient() {
	return this.tcpClient;
}
 
Example #6
Source File: StompBrokerRelayRegistration.java    From spring-analysis-note with MIT License 2 votes vote down vote up
/**
 * Configure a TCP client for managing TCP connections to the STOMP broker.
 * <p>By default {@code ReactorNettyTcpClient} is used.
 * <p><strong>Note:</strong> when this property is used, any
 * {@link #setRelayHost(String) host} or {@link #setRelayPort(int) port}
 * specified are effectively ignored.
 * @since 4.3.15
 */
public void setTcpClient(TcpOperations<byte[]> tcpClient) {
	this.tcpClient = tcpClient;
}
 
Example #7
Source File: StompBrokerRelayMessageHandler.java    From java-technology-stack with MIT License 2 votes vote down vote up
/**
 * Configure a TCP client for managing TCP connections to the STOMP broker.
 * <p>By default {@link ReactorNettyTcpClient} is used.
 * <p><strong>Note:</strong> when this property is used, any
 * {@link #setRelayHost(String) host} or {@link #setRelayPort(int) port}
 * specified are effectively ignored.
 */
public void setTcpClient(@Nullable TcpOperations<byte[]> tcpClient) {
	this.tcpClient = tcpClient;
}
 
Example #8
Source File: StompBrokerRelayMessageHandler.java    From java-technology-stack with MIT License 2 votes vote down vote up
/**
 * Get the configured TCP client (never {@code null} unless not configured
 * invoked and this method is invoked before the handler is started and
 * hence a default implementation initialized).
 */
@Nullable
public TcpOperations<byte[]> getTcpClient() {
	return this.tcpClient;
}
 
Example #9
Source File: StompBrokerRelayRegistration.java    From java-technology-stack with MIT License 2 votes vote down vote up
/**
 * Configure a TCP client for managing TCP connections to the STOMP broker.
 * <p>By default {@code ReactorNettyTcpClient} is used.
 * <p><strong>Note:</strong> when this property is used, any
 * {@link #setRelayHost(String) host} or {@link #setRelayPort(int) port}
 * specified are effectively ignored.
 * @since 4.3.15
 */
public void setTcpClient(TcpOperations<byte[]> tcpClient) {
	this.tcpClient = tcpClient;
}
 
Example #10
Source File: StompBrokerRelayMessageHandler.java    From spring4-understanding with Apache License 2.0 2 votes vote down vote up
/**
 * Configure a TCP client for managing TCP connections to the STOMP broker.
 * By default {@link Reactor2TcpClient} is used.
 */
public void setTcpClient(TcpOperations<byte[]> tcpClient) {
	this.tcpClient = tcpClient;
}
 
Example #11
Source File: StompBrokerRelayMessageHandler.java    From spring4-understanding with Apache License 2.0 2 votes vote down vote up
/**
 * Get the configured TCP client. Never {@code null} unless not configured
 * invoked and this method is invoked before the handler is started and
 * hence a default implementation initialized.
 */
public TcpOperations<byte[]> getTcpClient() {
	return this.tcpClient;
}
 
Example #12
Source File: Reactor2TcpStompClient.java    From spring4-understanding with Apache License 2.0 2 votes vote down vote up
/**
 * Create an instance with a pre-configured TCP client.
 * @param tcpClient the client to use
 */
public Reactor2TcpStompClient(TcpOperations<byte[]> tcpClient) {
	this.tcpClient = tcpClient;
}