Examples of RemoteCancellationException


Examples of de.fu_berlin.inf.dpp.exceptions.RemoteCancellationException

                throw new InterruptedException("Initiation was cancelled");
            initiationThread = Thread.currentThread();
            responseLock.await();
            assert rejected != null;
            if (rejected)
                throw new RemoteCancellationException(
                    "Recipient rejected session for " + service);
            assert session != null;
            session.setListener(sessionListener);
            return session;
        }
View Full Code Here

Examples of de.fu_berlin.inf.dpp.exceptions.RemoteCancellationException

                }

                if (packet.getType() == PacketType.CANCEL) {
                    assert packet.getObjectid() == objectid;

                    throw new RemoteCancellationException();
                }

                if (first) {
                    progress.beginTask(
                        "Receiving",
View Full Code Here

Examples of de.fu_berlin.inf.dpp.exceptions.RemoteCancellationException

                while ((numRead = fileInputStream.read(buffer)) > 0
                    && streamException == null) {
                    if (monitor.isCanceled())
                        throw new SarosCancellationException();
                    if (Thread.interrupted() || stopped)
                        throw new RemoteCancellationException();

                    out.write(buffer, 0, numRead);
                    sendBytes += numRead;

                    monitor.worked(numRead);
View Full Code Here

Examples of de.fu_berlin.inf.dpp.exceptions.RemoteCancellationException

                        // just stop once
                        getStreamSession().stopSession();
                        canceled = true;
                    }
                    if (Thread.interrupted() && !monitor.isCanceled())
                        throw new RemoteCancellationException();
                }
                fileOutputStream.flush();

                if (monitor.isCanceled())
                    throw new SarosCancellationException();
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. 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.