Permalink
Commits on Mar 9, 2008
  1. Set version to 2.0

    committed Mar 9, 2008
Commits on Mar 5, 2008
  1. @blair

    Remove the transcoder parameter from the Javadoc for two methods.

    These methods do not take a transcoder argument.
    blair committed Mar 5, 2008
  2. Don't allow CAS to run forever.

    The user may supply a maximum number of attempts.  Currently, it
    doesn't know *why* a failure occurs, but it at least doesn't hang
    forever.
    
    Conflicts:
    
    	src/main/java/net/spy/memcached/CASMutator.java
    	src/main/java/net/spy/memcached/MemcachedClient.java
    	src/main/java/net/spy/memcached/SerializingTranscoder.java
    	src/main/java/net/spy/memcached/transcoders/LongTranscoder.java
    	src/test/java/net/spy/memcached/CASMutatorTest.java
    committed Mar 5, 2008
  3. Increased test coverage.

    committed Mar 5, 2008
  4. Don't allow CAS to run forever.

    The user may supply a maximum number of attempts.  Currently, it
    doesn't know *why* a failure occurs, but it at least doesn't hang
    forever.
    committed Mar 5, 2008
  5. @blair
  6. @blair
  7. @blair
  8. @blair

    Make CASValue parameterized in T. Do this by requiring a Transcoder

    argument for CASMutator's contrustor.  This removes the need for casts
    In CASMutator.  Use the new LongTranscoder in the test suite.
    blair committed Mar 5, 2008
  9. @blair
  10. @blair

    Remove the encode*() and decode*() methods from SerializingTranscoder…

    … and
    
    use the same methods from TranscoderUtils.
    blair committed Mar 5, 2008
Commits on Mar 4, 2008
  1. @blair
  2. @blair

    Add a new transcoder for Long's.

    blair committed Mar 4, 2008
  3. @blair

    Add two utility methods to take any integer or long and hash it into a

    value safe for use as a memcached flags value.
    blair committed Mar 4, 2008
  4. @blair
  5. @blair

    Move the encode*() and decode*() methods in SerializingTranscoder.java

    into a new class and make them static.  This will allow other transcoders
    to use them.
    blair committed Mar 4, 2008
  6. @blair

    Move Transcoder and SerializingTranscoder into a new

    net.spy.memcached.transcoders package.  This gives space to write
    transcoders for many native types, which will allow for compile-time
    checks.
    blair committed Mar 4, 2008
  7. @blair

    Add parameterized versions of all the MemcachedClient methods.

    The new methods all take a Transcoder<T> and if they returned an
    Object, now return a T instead.
    
    The non-paramterized methods use the SerializingTranscoder which
    has T as an Object and calls the parameterized ones, so callers
    should not see a change in behavior.
    blair committed Mar 4, 2008
  8. @blair

    * src/main/java/net/spy/memcached/MemcachedClient.java

      (setTranscoder):
        Rename the to argument to tc to be consistent with the variable names
        in src/test/java/net/spy/memcached/SerializingTranscoderTest.java.
    Rename the
    blair committed Mar 4, 2008
  9. @blair

    Change the Transcoder interface to be parameterized by the type of ob…

    …jects
    
    it serializes.  This will allow for custom Transcoders to be used in
    methods and stronger compile-time warnings.
    
    The default SerializingTranscoder implements Transcoder<Object>.
    blair committed Mar 4, 2008
Commits on Mar 2, 2008
Commits on Mar 1, 2008
  1. Updating version in buildfile

    committed Mar 1, 2008
  2. Removed a done TODO item.

    committed Mar 1, 2008
  3. Now that protocol discovery is committed, use the same port for

    testing both protocols.
    committed Mar 1, 2008
  4. Slightly cleaner shutdown sequence.

    This avoids a couple of the exceptions that were occuring on shutdown
    due to lack of coordination (just allowing the NIO exceptions to tear
    stuff down), and downgrades others to debug as we can expect things to
    error occasionally when the plug is pulled.
    committed Mar 1, 2008
  5. Merge commit 'origin/cas'

    committed Mar 1, 2008
  6. Updated TODO re: interface

    committed Mar 1, 2008