public class WSConnectionManager extends Object implements ConnectionFinder<ConnectionSession>, SessionCloseListener<ConnectionSession>
| Modifier and Type | Method and Description |
|---|---|
void |
abortConnection(ConnectionSession connectionSession) |
void |
closeChannel(ChannelContext channelContext) |
ConnectionSession |
createConnectionSession(WSTCPURI tcpURI)
Open new tcp connection and establish service virtual connection
|
ConnectionSession |
find(ContactInfo<ConnectionSession> contactInfo,
Collection<ConnectionSession> idleConnections,
Collection<ConnectionSession> busyConnections)
Method that searches idleConnections and busyConnections for
the best connection.
|
void |
freeConnection(ConnectionSession connectionSession) |
static WSConnectionManager |
getInstance() |
void |
lockConnection(ConnectionSession connectionSession) |
void |
notifySessionClose(ConnectionSession connectionSession) |
ChannelContext |
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) |
public static WSConnectionManager getInstance()
@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, VersionMismatchException
public void closeChannel(@NotNull
ChannelContext channelContext)
public void lockConnection(@NotNull
ConnectionSession connectionSession)
throws InterruptedException,
SessionAbortedException
public void freeConnection(@NotNull
ConnectionSession connectionSession)
public void abortConnection(@NotNull
ConnectionSession connectionSession)
@NotNull public ConnectionSession createConnectionSession(@NotNull WSTCPURI tcpURI) throws VersionMismatchException, ServiceChannelException
public ConnectionSession find(ContactInfo<ConnectionSession> contactInfo, Collection<ConnectionSession> idleConnections, Collection<ConnectionSession> busyConnections) throws IOException
ConnectionFinderfind in interface ConnectionFinder<ConnectionSession>IOExceptionpublic void notifySessionClose(ConnectionSession connectionSession)
notifySessionClose in interface SessionCloseListener<ConnectionSession>Copyright © 2005–2018 Oracle Corporation. All rights reserved.