Call does not release standard output

15 views
Skip to first unread message

adam....@gmail.com

unread,
Jul 23, 2013, 12:00:30 PM7/23/13
to spymem...@googlegroups.com
Hi,   

This is my first example with spymemcached, and I am wondering why standard output is not released. do i need to close the connection? how?

-----------     
        try{
            MemcachedClient c=new MemcachedClient(new InetSocketAddress("cacheserver", 11211));
            Object obj = c.get(mukey);
            String str = obj.toString();
            System.out.println("\n\n here is content: " + str + "\n\n");
        }
        catch(IOException io){
            io.printStackTrace();
        }
-----------

Thanks

Matt Ingenthron

unread,
Jul 23, 2013, 5:58:24 PM7/23/13
to spymem...@googlegroups.com
You'll want to call the shutdown() method on the MemcachedClient object you're creating, as it has a thread still running.

Matt

p.s.: Just for general awareness, It is possible to enable using daemon threads as well, but that's not the default.



--
You received this message because you are subscribed to the Google Groups "spymemcached" group.
To unsubscribe from this group and stop receiving emails from it, send an email to spymemcached...@googlegroups.com.
To post to this group, send email to spymem...@googlegroups.com.
Visit this group at http://groups.google.com/group/spymemcached.
For more options, visit https://groups.google.com/groups/opt_out.
 
 

Reply all
Reply to author
Forward
0 new messages