Class WSConnectionManager
java.lang.Object
com.sun.xml.ws.transport.tcp.client.WSConnectionManager
- All Implemented Interfaces:
ConnectionFinder<ConnectionSession>,SessionCloseListener<ConnectionSession>
public class WSConnectionManager
extends Object
implements ConnectionFinder<ConnectionSession>, SessionCloseListener<ConnectionSession>
- Author:
- Alexey Stashok
-
Method Summary
Modifier and TypeMethodDescriptionvoidabortConnection(ConnectionSession connectionSession) voidcloseChannel(ChannelContext channelContext) createConnectionSession(WSTCPURI tcpURI) Open new tcp connection and establish service virtual connectionfind(ContactInfo<ConnectionSession> contactInfo, Collection<ConnectionSession> idleConnections, Collection<ConnectionSession> busyConnections) Method that searches idleConnections and busyConnections for the best connection.voidfreeConnection(ConnectionSession connectionSession) static WSConnectionManagervoidlockConnection(ConnectionSession connectionSession) voidnotifySessionClose(ConnectionSession connectionSession) openChannel(WSTCPURI uri, com.sun.xml.ws.api.WSService wsService, com.sun.xml.ws.api.WSBinding wsBinding, com.sun.xml.ws.api.pipe.Codec defaultCodec)
-
Method Details
-
getInstance
-
openChannel
@NotNull public ChannelContext openChannel(@NotNull WSTCPURI uri, @NotNull com.sun.xml.ws.api.WSService wsService, @NotNull com.sun.xml.ws.api.WSBinding wsBinding, @NotNull com.sun.xml.ws.api.pipe.Codec defaultCodec) throws InterruptedException, IOException, ServiceChannelException -
closeChannel
-
lockConnection
public void lockConnection(@NotNull ConnectionSession connectionSession) throws InterruptedException - Throws:
InterruptedException
-
freeConnection
-
abortConnection
-
createConnectionSession
@NotNull public ConnectionSession createConnectionSession(@NotNull WSTCPURI tcpURI) throws VersionMismatchException, ServiceChannelException Open new tcp connection and establish service virtual connection -
find
public ConnectionSession find(ContactInfo<ConnectionSession> contactInfo, Collection<ConnectionSession> idleConnections, Collection<ConnectionSession> busyConnections) Description copied from interface:ConnectionFinderMethod that searches idleConnections and busyConnections for the best connection. May return null if no best connections exists. May create a new connection and return it.- Specified by:
findin interfaceConnectionFinder<ConnectionSession>
-
notifySessionClose
- Specified by:
notifySessionClosein interfaceSessionCloseListener<ConnectionSession>
-