Examples of LinkObject


Examples of org.apache.catalina.tribes.transport.bio.util.LinkObject

        super.stop(svc);
    }
   
    public void run() {
        while ( run ) {
            LinkObject link = removeFromQueue();
            if ( link == null ) continue; //should not happen unless we exceed wait time
            while ( link != null && run ) {
                link = sendAsyncData(link);
            }//while
        }//while
View Full Code Here

Examples of org.apache.catalina.tribes.transport.bio.util.LinkObject

    }

    @Override
    public void run() {
        while ( run ) {
            LinkObject link = removeFromQueue();
            if ( link == null ) continue; //should not happen unless we exceed wait time
            while ( link != null && run ) {
                link = sendAsyncData(link);
            }//while
        }//while
View Full Code Here

Examples of org.apache.catalina.tribes.transport.bio.util.LinkObject

        return value;
    }

    @Override
    public boolean addToQueue(ChannelMessage msg, Member[] destination, InterceptorPayload payload) {
        final LinkObject obj = new LinkObject(msg,destination,payload);
        Runnable r = new Runnable() {
            @Override
            public void run() {
                sendAsyncData(obj);
            }
View Full Code Here

Examples of org.apache.catalina.tribes.transport.bio.util.LinkObject

        super.stop(svc);
    }
   
    public void run() {
        while ( run ) {
            LinkObject link = removeFromQueue();
            if ( link == null ) continue; //should not happen unless we exceed wait time
            while ( link != null && run ) {
                link = sendAsyncData(link);
            }//while
        }//while
View Full Code Here

Examples of org.apache.catalina.tribes.transport.bio.util.LinkObject

        return value;
    }
   
    @Override
    public boolean addToQueue(ChannelMessage msg, Member[] destination, InterceptorPayload payload) {
        final LinkObject obj = new LinkObject(msg,destination,payload);
        Runnable r = new Runnable() {
            public void run() {
                sendAsyncData(obj);
            }
        };
View Full Code Here

Examples of org.apache.catalina.tribes.transport.bio.util.LinkObject

        super.stop(svc);
    }
   
    public void run() {
        while ( run ) {
            LinkObject link = removeFromQueue();
            if ( link == null ) continue; //should not happen unless we exceed wait time
            while ( link != null && run ) {
                link = sendAsyncData(link);
            }//while
        }//while
View Full Code Here

Examples of org.apache.catalina.tribes.transport.bio.util.LinkObject

        return value;
    }
   
    @Override
    public boolean addToQueue(ChannelMessage msg, Member[] destination, InterceptorPayload payload) {
        final LinkObject obj = new LinkObject(msg,destination,payload);
        Runnable r = new Runnable() {
            public void run() {
                sendAsyncData(obj);
            }
        };
View Full Code Here

Examples of org.apache.catalina.tribes.transport.bio.util.LinkObject

        super.stop(svc);
    }
   
    public void run() {
        while ( run ) {
            LinkObject link = queue.remove();
            if ( link == null ) continue; //should not happen unless we exceed wait time
            while ( link != null && run ) {
                ChannelMessage msg = link.data();
                Member[] destination = link.getDestination();
                try {
                    super.sendMessage(destination,msg,null);
                    try {
                        if ( link.getHandler() != null ) link.getHandler().handleCompletion(destination,msg);
                    } catch ( Exception ex ) {
                        log.error("Unable to report back completed message.",ex);
                    }
                } catch ( Exception x ) {
                    if ( log.isDebugEnabled() ) log.debug("Error while processing async message.",x);
                    try {
                        if (link.getHandler() != null) link.getHandler().handleError(x, destination, msg);
                    } catch ( Exception ex ) {
                        log.error("Unable to report back error message.",ex);
                    }
                } finally {
                    currentSize.addAndGet(-msg.getMessage().getLength());
                    link = link.next();
                }//try
            }//while
        }//while
    }//run
View Full Code Here

Examples of org.apache.catalina.tribes.transport.bio.util.LinkObject

        super.stop(svc);
    }
   
    public void run() {
        while ( run ) {
            LinkObject link = removeFromQueue();
            if ( link == null ) continue; //should not happen unless we exceed wait time
            while ( link != null && run ) {
                link = sendAsyncData(link);
            }//while
        }//while
View Full Code Here

Examples of org.apache.catalina.tribes.transport.bio.util.LinkObject

        return value;
    }
   
    @Override
    public boolean addToQueue(ChannelMessage msg, Member[] destination, InterceptorPayload payload) {
        final LinkObject obj = new LinkObject(msg,destination,payload);
        Runnable r = new Runnable() {
            public void run() {
                sendAsyncData(obj);
            }
        };
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.