Skip to content

Commit 8bd9885

Browse files
chore: apply fmt-maven-plugin
1 parent fb43b86 commit 8bd9885

3 files changed

Lines changed: 11 additions & 11 deletions

File tree

‎java-bigtable/google-cloud-bigtable/src/main/java/com/google/cloud/bigtable/data/v2/internal/session/HashedWheelTimer.java‎

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -28,17 +28,17 @@
2828
import java.util.logging.Logger;
2929

3030
/**
31-
* {@link BigtableTimer} backed by a single-thread hashed wheel — same algorithm as Netty's
32-
* {@code HashedWheelTimer} but with no Netty dependency. Tick = {@value #TICK_DURATION_MS} ms,
33-
* {@value #TICKS_PER_WHEEL} buckets, so one full rotation is ~5 s.
31+
* {@link BigtableTimer} backed by a single-thread hashed wheel — same algorithm as Netty's {@code
32+
* HashedWheelTimer} but with no Netty dependency. Tick = {@value #TICK_DURATION_MS} ms, {@value
33+
* #TICKS_PER_WHEEL} buckets, so one full rotation is ~5 s.
3434
*
35-
* <p>Insert is O(1): the new {@link Timeout} is enqueued onto an MPSC pending queue and bucketed
36-
* by the tick thread on the next tick. Cancel is O(1): a single state CAS marks the entry
37-
* cancelled, and the worker unlinks it the next time the bucket is swept (so a cancelled entry
38-
* holds memory for at most one wheel rotation).
35+
* <p>Insert is O(1): the new {@link Timeout} is enqueued onto an MPSC pending queue and bucketed by
36+
* the tick thread on the next tick. Cancel is O(1): a single state CAS marks the entry cancelled,
37+
* and the worker unlinks it the next time the bucket is swept (so a cancelled entry holds memory
38+
* for at most one wheel rotation).
3939
*
40-
* <p>The worker thread only advances the wheel and hops fires to the caller-supplied
41-
* {@link Executor}; user code never runs on the tick thread.
40+
* <p>The worker thread only advances the wheel and hops fires to the caller-supplied {@link
41+
* Executor}; user code never runs on the tick thread.
4242
*/
4343
public final class HashedWheelTimer implements BigtableTimer {
4444
private static final Logger LOG = Logger.getLogger(HashedWheelTimer.class.getName());

‎java-bigtable/google-cloud-bigtable/src/test/java/com/google/cloud/bigtable/data/v2/internal/csm/tracers/VRpcTracerTest.java‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -46,10 +46,10 @@
4646
import com.google.cloud.bigtable.data.v2.internal.middleware.VRpc;
4747
import com.google.cloud.bigtable.data.v2.internal.session.BigtableTimer;
4848
import com.google.cloud.bigtable.data.v2.internal.session.FakeDescriptor;
49+
import com.google.cloud.bigtable.data.v2.internal.session.HashedWheelTimer;
4950
import com.google.cloud.bigtable.data.v2.internal.session.Session;
5051
import com.google.cloud.bigtable.data.v2.internal.session.SessionFactory;
5152
import com.google.cloud.bigtable.data.v2.internal.session.SessionImpl;
52-
import com.google.cloud.bigtable.data.v2.internal.session.HashedWheelTimer;
5353
import com.google.cloud.bigtable.data.v2.internal.session.SessionPoolInfo;
5454
import com.google.cloud.bigtable.data.v2.internal.session.fake.FakeServiceBuilder;
5555
import com.google.cloud.bigtable.data.v2.internal.session.fake.FakeSessionListener;

‎java-bigtable/google-cloud-bigtable/src/test/java/com/google/cloud/bigtable/data/v2/internal/middleware/RetryingVRpcTest.java‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -39,9 +39,9 @@
3939
import com.google.cloud.bigtable.data.v2.internal.csm.tracers.VRpcTracer;
4040
import com.google.cloud.bigtable.data.v2.internal.session.BigtableTimer;
4141
import com.google.cloud.bigtable.data.v2.internal.session.FakeDescriptor;
42+
import com.google.cloud.bigtable.data.v2.internal.session.HashedWheelTimer;
4243
import com.google.cloud.bigtable.data.v2.internal.session.SessionFactory;
4344
import com.google.cloud.bigtable.data.v2.internal.session.SessionImpl;
44-
import com.google.cloud.bigtable.data.v2.internal.session.HashedWheelTimer;
4545
import com.google.cloud.bigtable.data.v2.internal.session.SessionPoolInfo;
4646
import com.google.cloud.bigtable.data.v2.internal.session.fake.FakeServiceBuilder;
4747
import com.google.cloud.bigtable.data.v2.internal.session.fake.FakeSessionListener;

0 commit comments

Comments
 (0)