Java 8 ServiceUnavailableException - top ranked examples from Open Source projects

These code examples were ranked by Codota’s semantic indexing as the best open source examples for Java 8 ServiceUnavailableException class.

This code example shows how to use the following methods:
        if (connection == null) {
            ConnectRequest request = backend.createConnectRequest();
            request.setConnectionId(bindDn);
 
            connection = backend.connect(request);
            if (connection == null) throw new ServiceUnavailableException();
        } 
 
        return connection;
    } 
 
    public void removeSession() throws Exception {
 
        String bindDn = getPrincipal() == null ? null : getPrincipal().getJndiName().getUpName();
 
        DisconnectRequest request = backend.createDisconnectRequest();
        request.setConnectionId(bindDn);
 
        backend.disconnect(request);
    } 
3
CodeRank
This code example shows how to use the following methods:
        + "invoked after directory service core provider has been shutdown"; 
 
 
    public Control[] getConnectControls() throws NamingException 
    { 
        throw new ServiceUnavailableException( EXCEPTION_MSG ); 
    } 
 
 
    public Control[] getRequestControls() throws NamingException 
    { 
        throw new ServiceUnavailableException( EXCEPTION_MSG ); 
    } 
 
 
    public Control[] getResponseControls() throws NamingException 
    { 
        throw new ServiceUnavailableException( EXCEPTION_MSG ); 
    } 
 
3
CodeRank
See Code Examples for Java 8 ServiceUnavailableException Methods: