Package org.ldaptive.pool
Class BindConnectionPassivator
- java.lang.Object
-
- org.ldaptive.pool.BindConnectionPassivator
-
- All Implemented Interfaces:
Function<Connection,Boolean>
,ConnectionPassivator
public class BindConnectionPassivator extends Object implements ConnectionPassivator
Passivates a connection by performing a bind operation on it.
-
-
Field Summary
Fields Modifier and Type Field Description private BindRequest
bindRequest
Bind request to perform passivation with.private Logger
logger
Logger for this class.
-
Constructor Summary
Constructors Constructor Description BindConnectionPassivator()
Creates a new bind passivator.BindConnectionPassivator(BindRequest br)
Creates a new bind passivator.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Boolean
apply(Connection conn)
BindRequest
getBindRequest()
Returns the bind request.void
setBindRequest(BindRequest br)
Sets the bind request.String
toString()
-
-
-
Field Detail
-
logger
private final Logger logger
Logger for this class.
-
bindRequest
private BindRequest bindRequest
Bind request to perform passivation with.
-
-
Constructor Detail
-
BindConnectionPassivator
public BindConnectionPassivator()
Creates a new bind passivator.
-
BindConnectionPassivator
public BindConnectionPassivator(BindRequest br)
Creates a new bind passivator.- Parameters:
br
- to use for binds
-
-
Method Detail
-
getBindRequest
public BindRequest getBindRequest()
Returns the bind request.- Returns:
- bind request
-
setBindRequest
public void setBindRequest(BindRequest br)
Sets the bind request.- Parameters:
br
- bind request
-
apply
public Boolean apply(Connection conn)
- Specified by:
apply
in interfaceFunction<Connection,Boolean>
-
-