com.hazelcast.client.impl
public final class ClientEndpointImpl extends Object implements Client, ClientEndpoint
ClientEndpoint
and Client
implementation.Constructor and Description |
---|
ClientEndpointImpl(ClientEngineImpl clientEngine,
Connection conn) |
public ClientEndpointImpl(ClientEngineImpl clientEngine, Connection conn)
public Connection getConnection()
getConnection
in interface ClientEndpoint
public String getUuid()
Client
public boolean isAlive()
ClientEndpoint
isAlive
in interface ClientEndpoint
public void setLoginContext(LoginContext loginContext)
setLoginContext
in interface ClientEndpoint
public Subject getSubject()
getSubject
in interface ClientEndpoint
public boolean isFirstConnection()
isFirstConnection
in interface ClientEndpoint
public void authenticated(ClientPrincipal principal, Credentials credentials, boolean firstConnection)
authenticated
in interface ClientEndpoint
public void authenticated(ClientPrincipal principal)
authenticated
in interface ClientEndpoint
public boolean isAuthenticated()
isAuthenticated
in interface ClientEndpoint
public ClientPrincipal getPrincipal()
getPrincipal
in interface ClientEndpoint
public InetSocketAddress getSocketAddress()
Client
getSocketAddress
in interface Client
getSocketAddress
in interface Endpoint
public ClientType getClientType()
Client
getClientType
in interface Client
public TransactionContext getTransactionContext(String txnId)
getTransactionContext
in interface ClientEndpoint
public Credentials getCredentials()
getCredentials
in interface ClientEndpoint
public void setTransactionContext(TransactionContext transactionContext)
setTransactionContext
in interface ClientEndpoint
public void removeTransactionContext(String txnId)
removeTransactionContext
in interface ClientEndpoint
public void setListenerRegistration(String service, String topic, String id)
setListenerRegistration
in interface ClientEndpoint
public void setDistributedObjectListener(String id)
setDistributedObjectListener
in interface ClientEndpoint
public void clearAllListeners()
clearAllListeners
in interface ClientEndpoint
public void destroy() throws LoginException
LoginException
public void sendResponse(Object response, int callId)
sendResponse
in interface ClientEndpoint
public void sendClientMessage(ClientMessage clientMessage)
public void sendEvent(Object key, Object event, int callId)
sendEvent
in interface ClientEndpoint
Copyright © 2015 Hazelcast, Inc.. All Rights Reserved.