Changeset 446

Show
Ignore:
Timestamp:
07/19/07 12:22:20 (1 year ago)
Author:
blackhedd
Message:

refactorings

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • version_0/java/src/com/rubyeventmachine/tests/EMTest.java

    r444 r446  
    99import org.junit.Test; 
    1010 
    11 import com.rubyeventmachine.EM
     11import com.rubyeventmachine.EmReactor
    1212 
    1313import java.io.*; 
     
    1717public class EMTest { 
    1818 
    19         class ShortTimer extends EM
     19        class ShortTimer extends EmReactor
    2020                public void eventCallback (String sig, int eventCode, ByteBuffer data) { 
    2121                        System.out.println ("Short Callback "+sig+" "+eventCode+" "+data); 
     
    4343        @Test 
    4444        public final void testOneShort() throws IOException { 
    45                 EM em = new ShortTimer(); 
    46                 em.installOneshotTimer(3050); 
     45                EmReactor em = new ShortTimer(); 
     46                em.installOneshotTimer(1050); 
    4747                em.run(); 
    4848        } 
  • version_0/lib/jeventmachine.rb

    r442 r446  
    4242        LoopbreakSignalled = 105 
    4343 
    44         class EM < com.rubyeventmachine.EM 
     44        class EM < com.rubyeventmachine.EmReactor 
    4545                def eventCallback a1, a2, a3 
    4646                        s = String.from_java_bytes(a3.array[a3.position...a3.limit])