Skip to main content

[JIRA] Created: (JAVA_STATE_MANAGEMEN-7) Consider adding an State:recordFully() method

  • From: "mirceamarkus (JIRA)" <jira-no-reply@...>
  • To: issues@...
  • Subject: [JIRA] Created: (JAVA_STATE_MANAGEMEN-7) Consider adding an State:recordFully() method
  • Date: Wed, 8 Aug 2012 17:20:55 +0000 (GMT+00:00)
  • Auto-submitted: auto-generated

Consider adding an State:recordFully() method
---------------------------------------------

                 Key: JAVA_STATE_MANAGEMEN-7
                 URL: http://java.net/jira/browse/JAVA_STATE_MANAGEMEN-7
             Project: java-state-managemen
          Issue Type: Task
            Reporter: mirceamarkus


Currently the following pattern is used for storing an State Object:

      State<ByteChannel> state = mgr.getOrCreateState(key);
      ByteChannel channel = ... create a ByteChannel from a file, etc ...
      state.setContents(channel);
      state.record(); 



We might want to also add an blocking State:recordFully method as well and 
make the record method non-blocking. Similar to the way 
DataInputStream:readFully works: 
http://docs.oracle.com/javase/1.4.2/docs/api/java/io/DataInput.html#readFully(byte[])


-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: 
http://java.net/jira/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira

        


[JIRA] Created: (JAVA_STATE_MANAGEMEN-7) Consider adding an State:recordFully() method

mirceamarkus (JIRA) 08/08/2012
 
 
Close
loading
Please Confirm
Close