Package com.hazelcast.spi.exception

Examples of com.hazelcast.spi.exception.RetryableIOException


        //contains remoteAddress and principal
        SerializableCollection collectionWrapper;
        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


    private void doInvokeRemote() {
        operationService.registerInvocation(this);
        boolean sent = operationService.send(op, invTarget);
        if (!sent) {
            operationService.deregisterInvocation(this);
            notify(new RetryableIOException("Packet not send to -> " + invTarget));
        }
    }
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 ownerConnectionFuture.createNew(translatedAddress);
    }
View Full Code Here

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

        //contains remoteAddress and principal
        SerializableCollection collectionWrapper;
        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

                    ownerConnectionLock.notifyAll();
                }
                return conn;
            } catch (Exception e) {
                future.cancel(true);
                throw new RetryableIOException(e);
            }
        }
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.