kikocis/java-driver public
Changesets · Branches · Tags · Compare
| Changeset | 91df7d5540af36a5eb5be776f4aef32ce686d6c3b690f6b75243af8a895177a7 |
|---|---|
| Author | olim7t <omichallat+github@gmail.com> · 2014-10-06 18:46 +02:00 |
| Committer | olim7t <omichallat+github@gmail.com> · 2014-10-06 18:46 +02:00 |
| Parents | 81b76d1ea060 |
1 file changed
modified driver-core/src/main/java/com/datastax/driver/core/ServerSideTimestampGenerator.java +8 −0
| @@ -20,8 +20,16 @@ | ||
| 20 | 20 | * server-side timestamps. |
| 21 | 21 | */ |
| 22 | 22 | public class ServerSideTimestampGenerator implements TimestampGenerator { |
| 23 | + /** | |
| 24 | + * The unique instance of this generator. | |
| 25 | + */ | |
| 26 | + public static final TimestampGenerator INSTANCE = new ServerSideTimestampGenerator(); | |
| 27 | + | |
| 23 | 28 | @Override |
| 24 | 29 | public long next() { |
| 25 | 30 | return 0; |
| 26 | 31 | } |
| 32 | + | |
| 33 | + private ServerSideTimestampGenerator() { | |
| 34 | + } | |
| 27 | 35 | } |