[CVS spice] Remove unused file

pdonald-yCVjj/[email protected] 12 May 2004 07:31:14 -0000
Newsgroups gmane.comp.java.spice.cvs
Message-ID <[email protected]>
Commit in spice/sandbox/event/src/java/org/codehaus/spice/event/impl on MAIN

BlockingEventSink.java -75 1.1 removed

Remove unused file

----------

spice/sandbox/event/src/java/org/codehaus/spice/event/impl

BlockingEventSink.java removed after 1.1

diff -N BlockingEventSink.java
--- BlockingEventSink.java 26 Mar 2004 00:38:31 -0000 1.1
+++ /dev/null 1 Jan 1970 00:00:00 -0000
@@ -1,75 +0,0 @@

-package org.codehaus.spice.event.impl;
-
-import org.codehaus.spice.event.EventSink;
-
-/**
- * A BlockingEventSink will wait until notified prior to attempting to retrieve
- * events from the underlying EventSource.
- *
- * @author Peter Donald
- * @version $Revision: 1.1 $ $Date: 2004/03/26 00:38:31 $
- */
-public class BlockingEventSink
- implements EventSink
-{
- /**
- * The underlying EventSink to send events to.
- */
- private final EventSink _sink;
-
- /**
- * Create an instance.
- *
- * @param sink the sink to wrap.
- */
- public BlockingEventSink( final EventSink sink )
- {
- if( null == sink )
- {
- throw new NullPointerException( "sink" );
- }
- _sink = sink;
- }
-
- /**
- * @see EventSink#addEvent(Object)
- */
- public boolean addEvent( final Object event )
- {
- final Object lock = getSinkLock();
- boolean result = false;
- while( false == result )
- {
- synchronized( lock )
- {
- result = _sink.addEvent( event );
- }
- }
- return true;
- }
-
- /**
- * @see EventSink#addEvents(Object[])
- */
- public boolean addEvents( final Object[] events )
- {
- final Object lock = getSinkLock();
- boolean result = false;
- while( false == result )
- {
- synchronized( lock )
- {
- result = _sink.addEvents( events );
- }
- }
- return true;
- }
-
- /**
- * @see EventSink#getSinkLock()
- */
- public Object getSinkLock()
- {
- return _sink.getSinkLock();
- }
-}

CVSspam 0.2.8