Package org.apache.sshd.client.session
Class ClientSessionImpl.Services
- java.lang.Object
-
- org.apache.sshd.common.session.helpers.CurrentService
-
- org.apache.sshd.client.session.ClientSessionImpl.Services
-
- Enclosing class:
- ClientSessionImpl
private static class ClientSessionImpl.Services extends CurrentService
Encapsulates and protects against concurrent access the service switching.
-
-
Field Summary
Fields Modifier and Type Field Description private Service
next
private java.lang.String
nextName
-
Fields inherited from class org.apache.sshd.common.session.helpers.CurrentService
session
-
-
Constructor Summary
Constructors Constructor Description Services(ClientSessionImpl session)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description (package private) Service
getNext()
(package private) java.lang.String
getNextName()
(package private) void
initialize(java.util.List<? extends ServiceFactory> factories)
(package private) void
switchServices()
-
Methods inherited from class org.apache.sshd.common.session.helpers.CurrentService
getName, getService, process, set, start
-
-
-
-
Field Detail
-
nextName
private java.lang.String nextName
-
next
private Service next
-
-
Constructor Detail
-
Services
Services(ClientSessionImpl session)
-
-
Method Detail
-
initialize
void initialize(java.util.List<? extends ServiceFactory> factories) throws java.io.IOException
- Throws:
java.io.IOException
-
switchServices
void switchServices() throws java.io.IOException
- Throws:
java.io.IOException
-
getNextName
java.lang.String getNextName()
-
getNext
Service getNext()
-
-