com.sun.xml.ws.transport.tcp.client
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
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
getInstance
public static WSConnectionManager getInstance()
openChannel
@NotNull
public ChannelContext openChannel(@NotNull
WSTCPURI uri,
@NotNull
WSService wsService,
@NotNull
WSBinding wsBinding,
@NotNull
Codec defaultCodec)
throws InterruptedException,
IOException,
ServiceChannelException,
VersionMismatchException
- Throws:
InterruptedException
IOException
ServiceChannelException
VersionMismatchException
closeChannel
public void closeChannel(@NotNull
ChannelContext channelContext)
lockConnection
public void lockConnection(@NotNull
ConnectionSession connectionSession)
throws InterruptedException,
SessionAbortedException
- Throws:
InterruptedException
SessionAbortedException
freeConnection
public void freeConnection(@NotNull
ConnectionSession connectionSession)
abortConnection
public void abortConnection(@NotNull
ConnectionSession connectionSession)
createConnectionSession
@NotNull
public ConnectionSession createConnectionSession(@NotNull
WSTCPURI tcpURI)
throws VersionMismatchException,
ServiceChannelException
- Open new tcp connection and establish service virtual connection
- Throws:
VersionMismatchException
ServiceChannelException
find
public ConnectionSession find(ContactInfo<ConnectionSession> contactInfo,
Collection<ConnectionSession> idleConnections,
Collection<ConnectionSession> busyConnections)
throws IOException
- Description copied from interface:
ConnectionFinder
- Method 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:
find in interface ConnectionFinder<ConnectionSession>
- Throws:
IOException
notifySessionClose
public void notifySessionClose(ConnectionSession connectionSession)
- Specified by:
notifySessionClose in interface SessionCloseListener<ConnectionSession>
Copyright © 2005-2015 Oracle Corporation. All Rights Reserved.