public static class TCPPassivePortFactory.PassivePortPool extends java.lang.Object implements PortPoolInterface
cvsRev
Constructor and Description |
---|
PassivePortPool(java.lang.String portName,
TCPPassivePortFactory factory)
Create the pool for the given factory and port name.
|
Modifier and Type | Method and Description |
---|---|
void |
checkin(PortInterface port)
This will check in a resource that you have checked out.
|
PortInterface |
checkout()
This method will return an instance of a port interface.
|
void |
clear()
This closes the server socket.
|
java.lang.String |
getName()
This method returns the name associated with this port pool.
|
void |
setMaxPorts(int maxPorts)
This is ignored.
|
public PassivePortPool(java.lang.String portName, TCPPassivePortFactory factory) throws java.io.IOException, BadParameterException
portName
- factory
- java.io.IOException
BadParameterException
public void checkin(PortInterface port) throws BadParameterException
PortPoolInterface
checkin
in interface PortPoolInterface
BadParameterException
PortPoolInterface.checkout()
public PortInterface checkout() throws java.io.IOException, BadParameterException
PortPoolInterface
checkout
in interface PortPoolInterface
java.io.IOException
BadParameterException
public void clear()
clear
in interface PortPoolInterface
PortPoolInterface.clear()
public java.lang.String getName()
PortPoolInterface
getName
in interface PortPoolInterface
public void setMaxPorts(int maxPorts)
setMaxPorts
in interface PortPoolInterface
PortPoolInterface.setMaxPorts(int)
Copyright © 1999-2025 ErgoTech Systems, Inc. All Rights Reserved.