Package java.util

Examples of java.util.Vector.notify()


            pullQ = conn.getPullQ();
        }

        synchronized (pullQ) {
            pullQ.addElement(p);
            pullQ.notify();
        }
    }

    private void interceptConnOption(Connection conn, HttpTunnelPacket p) {
        byte[] buf = p.getPacketBody();
View Full Code Here


        pullQ = conn.getPullQ();

        synchronized (pullQ) {
            pullQ.insertElementAt(p, 0);
            pullQ.notify();
        }
    }

    public void retrySendPackets(Vector v, String connIdStr, String serverName) {
        if (serverName == null) {
View Full Code Here

        synchronized (pullQ) {
            for (int i = 0; i < v.size(); i++) {
                pullQ.insertElementAt(v.elementAt(i), i);
            }

            pullQ.notify();
        }
    }

    protected void checkConnectionTimeouts() {
        long now = System.currentTimeMillis();
View Full Code Here

                        messageQueue.removeElementAt( 0 );
                    }
                }

                messageQueue.addElement( pd );
                messageQueue.notify();
            }
        } catch( IOException e1 ) {
            // a problem occurred with the input stream
            // however, the original StreamConnectionNotifier is still valid
            if( inputStream != null ) {
View Full Code Here

                data = new SimChangeData();
            } else {
                data = new StatusChangeData( result );
            }
            messageQueue.addElement( data );
            messageQueue.notify();
        }

        launchUI();
    }
View Full Code Here

    private void stopDaemon() {
        if( _daemonStore != null ) {
            Vector commandQueue = _daemonStore.getCommandQueue();
            synchronized( commandQueue ) {
                commandQueue.addElement( new Object() );
                commandQueue.notify();
            }
            _daemonStore.getMessageQueue().removeAllElements();
        }
    }
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.