Return a Message instance to the global pool. You MUST NOT touch the Message after calling this function -- it has effectively been freed.
()
| 246 | * freed. |
| 247 | */ |
| 248 | public void recycle() { |
| 249 | clearForRecycle(); |
| 250 | |
| 251 | synchronized (sPoolSync) { |
| 252 | if (sPoolSize < MAX_POOL_SIZE) { |
| 253 | next = sPool; |
| 254 | sPool = this; |
| 255 | sPoolSize++; |
| 256 | } |
| 257 | } |
| 258 | } |
| 259 | |
| 260 | /** |
| 261 | * Make this message like o. Performs a shallow copy of the data field. |
no test coverage detected