Java Doc for Sequence.java in  » 6.0-JDK-Modules-com.sun » wsit » com » sun » xml » ws » rm » Java Source Code / Java DocumentationJava Source Code and Java Documentation

Java Source Code / Java Documentation
1. 6.0 JDK Core
2. 6.0 JDK Modules
3. 6.0 JDK Modules com.sun
4. 6.0 JDK Modules com.sun.java
5. 6.0 JDK Modules sun
6. 6.0 JDK Platform
7. Ajax
8. Apache Harmony Java SE
9. Aspect oriented
10. Authentication Authorization
11. Blogger System
12. Build
13. Byte Code
14. Cache
15. Chart
16. Chat
17. Code Analyzer
18. Collaboration
19. Content Management System
20. Database Client
21. Database DBMS
22. Database JDBC Connection Pool
23. Database ORM
24. Development
25. EJB Server geronimo
26. EJB Server GlassFish
27. EJB Server JBoss 4.2.1
28. EJB Server resin 3.1.5
29. ERP CRM Financial
30. ESB
31. Forum
32. GIS
33. Graphic Library
34. Groupware
35. HTML Parser
36. IDE
37. IDE Eclipse
38. IDE Netbeans
39. Installer
40. Internationalization Localization
41. Inversion of Control
42. Issue Tracking
43. J2EE
44. JBoss
45. JMS
46. JMX
47. Library
48. Mail Clients
49. Net
50. Parser
51. PDF
52. Portal
53. Profiler
54. Project Management
55. Report
56. RSS RDF
57. Rule Engine
58. Science
59. Scripting
60. Search Engine
61. Security
62. Sevlet Container
63. Source Control
64. Swing Library
65. Template Engine
66. Test Coverage
67. Testing
68. UML
69. Web Crawler
70. Web Framework
71. Web Mail
72. Web Server
73. Web Services
74. Web Services apache cxf 2.0.1
75. Web Services AXIS2
76. Wiki Engine
77. Workflow Engines
78. XML
79. XML UI
Java
Java Tutorial
Java Open Source
Jar File Download
Java Articles
Java Products
Java by API
Photoshop Tutorials
Maya Tutorials
Flash Tutorials
3ds-Max Tutorials
Illustrator Tutorials
GIMP Tutorials
C# / C Sharp
C# / CSharp Tutorial
C# / CSharp Open Source
ASP.Net
ASP.NET Tutorial
JavaScript DHTML
JavaScript Tutorial
JavaScript Reference
HTML / CSS
HTML CSS Reference
C / ANSI-C
C Tutorial
C++
C++ Tutorial
Ruby
PHP
Python
Python Tutorial
Python Open Source
SQL Server / T-SQL
SQL Server / T-SQL Tutorial
Oracle PL / SQL
Oracle PL/SQL Tutorial
PostgreSQL
SQL / MySQL
MySQL Tutorial
VB.Net
VB.Net Tutorial
Flash / Flex / ActionScript
VBA / Excel / Access / Word
XML
XML Tutorial
Microsoft Office PowerPoint 2007 Tutorial
Microsoft Office Excel 2007 Tutorial
Microsoft Office Word 2007 Tutorial
Java Source Code / Java Documentation » 6.0 JDK Modules com.sun » wsit » com.sun.xml.ws.rm 
Source Cross Reference  Class Diagram Java Document (Java Doc) 


java.lang.Object
   com.sun.xml.ws.rm.Sequence

All known Subclasses:   com.sun.xml.ws.rm.jaxws.runtime.InboundSequence,  com.sun.xml.ws.rm.jaxws.runtime.OutboundSequence,
Sequence
public class Sequence (Code)
A Sequence is a sparse array of messages corresponding to an RM Sequence. It is implemented as an ArrayList with nulls at unfilled indices.


Field Summary
protected  booleanallowDuplicates
    
protected  booleanclosed
    
protected  SequenceConfigconfig
    
protected  intfirstKnownGap
    
protected  Stringid
     The sequence identifier.
protected  booleanlast
     Flag indicates that message with Sequence header containing Last element has been sent/received.
protected  longlastActivityTime
     Last accesse time.
protected  ArrayList<Message>list
    
protected  intmaxMessages
     Maximum number of stored messages.
protected  intnextIndex
     The smallest unfilled index.
protected  RMConstantsrmConstants
    
protected  intstoredMessages
     Number of messages currently being stored awaiting completion.

Constructor Summary
public  Sequence()
    

Method Summary
public synchronized  Messageget(int index)
     Gets the Message at the specified index.
public  StringgetId()
    
protected  longgetLastActivityTime()
     Accessor for lastActivityTime field.
public synchronized  intgetNextIndex()
     Accessor for the nextIndex field.
public  SequenceConfiggetSequenceConfig()
     Accessor for SequenceConfig field.
public synchronized  booleanisClosed()
    
protected  booleanisGettingClose(long elapsedTime, long timeLimit)
     Return value determines whether elapsed time is close enough to time limit to pull the trigger and send an ackRequested to keep the sequence alive.
public synchronized  booleanisLast()
    
public  voidresetLastActivityTime()
     Resets lastActivityTime field to current time.
public synchronized  intset(int i, Message m)
     Adds a Message to the Sequence at a specified indes.
public synchronized  voidsetClosed()
     Sets the last flag.
public  voidsetId(String id)
     Sets the sequence identifier.
public synchronized  voidsetLast()
     Sets the last flag.

Field Detail
allowDuplicates
protected boolean allowDuplicates(Code)



closed
protected boolean closed(Code)
Flag that indicates if the CloseSequence message has been sent/received If this is the case then the Sequence needs to be closed and no more messages with that Sequence Id should be accepted



config
protected SequenceConfig config(Code)



firstKnownGap
protected int firstKnownGap(Code)



id
protected String id(Code)
The sequence identifier.



last
protected boolean last(Code)
Flag indicates that message with Sequence header containing Last element has been sent/received. If this is the case, SequenceAcknowledgements for the sequence may contain acks for a message is one greater than the index for the last message in the sequence.



lastActivityTime
protected long lastActivityTime(Code)
Last accesse time.



list
protected ArrayList<Message> list(Code)
The underlying list of messages



maxMessages
protected int maxMessages(Code)
Maximum number of stored messages. Used for server-side sequences for which flow control is enabled. The value -1 indicates that there is no limit.



nextIndex
protected int nextIndex(Code)
The smallest unfilled index.



rmConstants
protected RMConstants rmConstants(Code)
RMConstants associated with each Sequence which will give information regarding addressing version, JAXBContext etc



storedMessages
protected int storedMessages(Code)
Number of messages currently being stored awaiting completion.




Constructor Detail
Sequence
public Sequence()(Code)




Method Detail
get
public synchronized Message get(int index) throws InvalidMessageNumberException(Code)
Gets the Message at the specified index.
Parameters:
  index - The index to access The Message at the specified index
throws:
  InvalidMessageNumberException - If the index is larger than the largestindex used.



getId
public String getId()(Code)
Gets the sequence identifier The sequence identifier.



getLastActivityTime
protected long getLastActivityTime()(Code)
Accessor for lastActivityTime field. The value of the field.



getNextIndex
public synchronized int getNextIndex()(Code)
Accessor for the nextIndex field. The value of the nextIndex field



getSequenceConfig
public SequenceConfig getSequenceConfig()(Code)
Accessor for SequenceConfig field.



isClosed
public synchronized boolean isClosed()(Code)



isGettingClose
protected boolean isGettingClose(long elapsedTime, long timeLimit)(Code)
Return value determines whether elapsed time is close enough to time limit to pull the trigger and send an ackRequested to keep the sequence alive.
Parameters:
  elapsedTime - Elapsed time since last reset.
Parameters:
  timeLimit - Maximum time to wait



isLast
public synchronized boolean isLast()(Code)



resetLastActivityTime
public void resetLastActivityTime()(Code)
Resets lastActivityTime field to current time.



set
public synchronized int set(int i, Message m) throws InvalidMessageNumberException, BufferFullException, DuplicateMessageException(Code)
Adds a Message to the Sequence at a specified indes. The index must be positive. If the index is larger than the nextIndex field, nulls are inserted between the largest index used and the index, and the index becomes the new value of the nextIndex field
Parameters:
  i - The index at which to insert the message.
Parameters:
  m - The message to insert The new value of nextIndex.



setClosed
public synchronized void setClosed()(Code)
Sets the last flag.



setId
public void setId(String id)(Code)
Sets the sequence identifier.
Parameters:
  id - The sequence identifier.



setLast
public synchronized void setLast()(Code)
Sets the last flag.



Methods inherited from java.lang.Object
native protected Object clone() throws CloneNotSupportedException(Code)(Java Doc)
public boolean equals(Object obj)(Code)(Java Doc)
protected void finalize() throws Throwable(Code)(Java Doc)
final native public Class getClass()(Code)(Java Doc)
native public int hashCode()(Code)(Java Doc)
final native public void notify()(Code)(Java Doc)
final native public void notifyAll()(Code)(Java Doc)
public String toString()(Code)(Java Doc)
final native public void wait(long timeout) throws InterruptedException(Code)(Java Doc)
final public void wait(long timeout, int nanos) throws InterruptedException(Code)(Java Doc)
final public void wait() throws InterruptedException(Code)(Java Doc)

www.java2java.com | Contact Us
Copyright 2009 - 12 Demo Source and Support. All rights reserved.
All other trademarks are property of their respective owners.