Package com.hazelcast.spi.exception

Examples of com.hazelcast.spi.exception.RetryableIOException


            while (ownerConnection == null) {
                try {
                    ownerConnectionLock.wait(waitTime);
                } catch (InterruptedException e) {
                    logger.warning("Wait for owner connection is timed out");
                    throw new RetryableIOException(e);
                }
            }
            return ownerConnection.getRemoteEndpoint();
        }
    }
View Full Code Here


                ownerConnectionLock.notifyAll();
            }
            return ownerConnection;
        } catch (Exception e) {
            future.cancel(true);
            throw new RetryableIOException(e);
        }
    }
View Full Code Here

                    final ICompletableFuture<ClientConnection> future = executionService.submitInternal(connectionProcessor);
                    try {
                        clientConnection = future.get(5, TimeUnit.SECONDS);
                    } catch (Exception e) {
                        future.cancel(true);
                        throw new RetryableIOException(e);
                    }
                    ClientConnection current = connections.putIfAbsent(clientConnection.getRemoteEndpoint(), clientConnection);
                    if (current != null) {
                        clientConnection.innerClose();
                        clientConnection = current;
View Full Code Here

        auth.setFirstConnection(firstConnection);
        SerializableCollection collectionWrapper; //contains remoteAddress and principal
        try {
            collectionWrapper = (SerializableCollection) sendAndReceive(auth, connection);
        } catch (Exception e) {
            throw new RetryableIOException(e);
        }
        final Iterator<Data> iter = collectionWrapper.iterator();
        if (iter.hasNext()) {
            final Data addressData = iter.next();
            final Address address = ss.toObject(addressData);
View Full Code Here

            OperationAccessor.setCallId(op, callId);
            boolean sent = operationService.send(op, invTarget);
            if (!sent) {
                operationService.deregisterRemoteCall(callId);
                operationService.deregisterBackupCall(callId);
                notify(new RetryableIOException("Packet not sent to -> " + invTarget));
            }
        } else {
            if (op instanceof BackupAwareOperation) {
                final long callId = operationService.newCallId();
                registerBackups((BackupAwareOperation) op, callId);
View Full Code Here

    private void doInvokeRemote() {
        long callId = operationService.registerInvocation(this);
        boolean sent = operationService.send(op, invTarget);
        if (!sent) {
            operationService.deregisterInvocation(callId);
            notify(new RetryableIOException("Packet not send to -> " + invTarget));
        }
    }
View Full Code Here

            while (ownerConnection == null) {
                try {
                    ownerConnectionLock.wait(waitTime);
                } catch (InterruptedException e) {
                    LOGGER.warning("Wait for owner connection is timed out");
                    throw new RetryableIOException(e);
                }
            }
            return ownerConnection.getRemoteEndpoint();
        }
    }
View Full Code Here

    @Override
    public ClientConnection ownerConnection(Address address) throws Exception {
        final Address translatedAddress = addressTranslator.translate(address);
        if (translatedAddress == null) {
            throw new RetryableIOException(address + " can not be translated! ");
        }
        return ownerConnectionInternal(translatedAddress);
    }
View Full Code Here

                ownerConnectionLock.notifyAll();
            }
            return ownerConnection;
        } catch (Exception e) {
            future.cancel(true);
            throw new RetryableIOException(e);
        }
    }
View Full Code Here

                    final ICompletableFuture<ClientConnection> future = executionService.submitInternal(connectionProcessor);
                    try {
                        clientConnection = future.get(connectionTimeout + TIMEOUT_PLUS, TimeUnit.MILLISECONDS);
                    } catch (Exception e) {
                        future.cancel(true);
                        throw new RetryableIOException(e);
                    }
                    ClientConnection current = connections.putIfAbsent(address, clientConnection);
                    if (current != null) {
                        clientConnection.innerClose();
                        clientConnection = current;
View Full Code Here

TOP

Related Classes of com.hazelcast.spi.exception.RetryableIOException

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.